Skip to content

Commit

Permalink
fix collection ids
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed May 28, 2024
1 parent d1062a6 commit 72d745e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const useAppStore = defineStore('app', {
const res = await CollectionApi.getCollectionsIds(totalCount);
const collectionsData = res.data.GetCollections;
if (collectionsData.pageInfo.hasNextPage) {
await this.fetchCollectionIds(collectionsData.totalCount);
await this.fetchCollectionIds(collectionsData.totalCount > 500 ? 500 : collectionsData.totalCount);
} else {
this.collections = collectionsData.edges.map((collection: any) => collection.node.collectionId);
}
Expand Down

0 comments on commit 72d745e

Please sign in to comment.