From a84d41ed5f43db2b3c1aa1175747dc3c8453ad73 Mon Sep 17 00:00:00 2001 From: Sashank Aryal Date: Wed, 25 Sep 2024 16:48:48 -0500 Subject: [PATCH] optional chaining for group id --- app/packages/state/src/recoil/groups.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/packages/state/src/recoil/groups.ts b/app/packages/state/src/recoil/groups.ts index 080ccc9a52f..3f426f9cc0b 100644 --- a/app/packages/state/src/recoil/groups.ts +++ b/app/packages/state/src/recoil/groups.ts @@ -389,7 +389,7 @@ export const groupField = selector({ export const groupId = selector({ key: "groupId", - get: ({ get }) => get(modalSelector).groupId || null, + get: ({ get }) => get(modalSelector)?.groupId || null, }); export const refreshGroupQuery = atom({