Skip to content

Commit

Permalink
test element count directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Mar 15, 2024
1 parent 7404493 commit af17eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/stores/collectionElementsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af17eb7

Please sign in to comment.