Skip to content

Commit

Permalink
tweak logic to track unfiltered ids
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Jul 19, 2023
1 parent a01870f commit 4021fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/store/objectStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const useObjectStore = defineStore('object', () => {
// Merge and assign
state.objects.value = difference.concat(response);
// Track all the object IDs that the user would have access to in the table (even if filters are applied)
if(!tagset && !metadata) {
if(!tagset?.length && !metadata?.length) {
state.unfilteredObjectIds.value = state.objects.value.map((o) => o.id);
}
}
Expand Down

0 comments on commit 4021fa9

Please sign in to comment.