Skip to content

Commit

Permalink
Fix typo in hasLoadingCollectionElementsError computed property
Browse files Browse the repository at this point in the history
As it was, false was being used as an index instead of the fallback
return.
  • Loading branch information
dannon committed Oct 17, 2024
1 parent d1d846f commit 62e9b34
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 @@ -66,7 +66,7 @@ export const useCollectionElementsStore = defineStore("collectionElementsStore",

const hasLoadingCollectionElementsError = computed(() => {
return (collection: CollectionEntry) => {
return loadingCollectionElementsErrors.value[getCollectionKey(collection) ?? false];
return loadingCollectionElementsErrors.value[getCollectionKey(collection)] ?? false;
};
});

Expand Down

0 comments on commit 62e9b34

Please sign in to comment.