diff --git a/packages/objectloader/src/index.js b/packages/objectloader/src/index.js index 2f5d2f867..552720c7a 100644 --- a/packages/objectloader/src/index.js +++ b/packages/objectloader/src/index.js @@ -7,7 +7,7 @@ import { ObjectLoaderRuntimeError } from './errors/index.js' import { polyfillReadableStreamForAsyncIterator } from './helpers/stream.js' -import { chunk } from '#lodash' +import { chunk, isString } from '#lodash' /** * Simple client that streams object info from a Speckle Server. * TODO: Object construction progress reporting is weird. @@ -561,9 +561,13 @@ class ObjectLoader { // this.logger("Cache check for : ", idsChunk.length, Date.now() - t0) for (const cachedObj of cachedData) { - if (!cachedObj.data) - // non-existent objects are retrieved with `undefined` data + if ( + !cachedObj.data || + (isString(cachedObj.data) && cachedObj.data.startsWith('