Skip to content

Commit

Permalink
optional chaining for group id
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal authored and ritch committed Sep 25, 2024
1 parent 6a358a0 commit a84d41e
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 @@ -389,7 +389,7 @@ export const groupField = selector<string>({

export const groupId = selector<string>({
key: "groupId",
get: ({ get }) => get(modalSelector).groupId || null,
get: ({ get }) => get(modalSelector)?.groupId || null,
});

export const refreshGroupQuery = atom<number>({
Expand Down

0 comments on commit a84d41e

Please sign in to comment.