diff --git a/client/src/stores/collectionElementsStore.ts b/client/src/stores/collectionElementsStore.ts index ac04e1839611..73c63ade28a2 100644 --- a/client/src/stores/collectionElementsStore.ts +++ b/client/src/stores/collectionElementsStore.ts @@ -74,7 +74,7 @@ export const useCollectionElementsStore = defineStore("collectionElementsStore", const collectionKey = getCollectionKey(collection); try { - if (storedElements.length !== 0) { + if (collection.element_count !== null) { // We should fetch only missing (placeholder) elements from the range const firstMissingIndexInRange = storedElements .slice(offset, offset + limit)