Skip to content

Commit

Permalink
has group slices only when group dataset (#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane authored Jul 8, 2023
1 parent 95b491d commit 2ecdea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/packages/state/src/recoil/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const groupSlices = selector<string[]>({

export const hasGroupSlices = selector<boolean>({
key: "hasGroupSlices",
get: ({ get }) => Boolean(get(groupSlices).length),
get: ({ get }) => get(isGroup) && Boolean(get(groupSlices).length),
});

export const defaultPcdSlice = selector<string | null>({
Expand Down

0 comments on commit 2ecdea1

Please sign in to comment.