Skip to content

Commit

Permalink
fix: clearing filters in the directory app shows the correct number o…
Browse files Browse the repository at this point in the history
…f organizations

After clearing the filters in the directory app, the total count of organizations shows the correct number of biobanks.
  • Loading branch information
konstantina-gkp authored Feb 7, 2024
2 parents ba931a3 + 06f404f commit 098dcb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/directory/src/stores/biobanksStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,8 @@ export const useBiobanksStore = defineStore("biobanksStore", () => {
biobankCards.value = [];
const biobankResult = await baseQuery.execute();

/** only show biobanks that have collections */
const foundBiobanks = biobankResult.Biobanks
? biobankResult.Biobanks.filter((biobank) => biobank.collections)
: [];
/** also show biobanks that don't have collections */
const foundBiobanks = biobankResult.Biobanks || [];
biobankCards.value = filterWithdrawn(foundBiobanks);
waitingForResponse.value = false;

Expand Down

0 comments on commit 098dcb5

Please sign in to comment.