From 1c80c2e5512fead07af35c22e0c3f33ee3ff6208 Mon Sep 17 00:00:00 2001 From: Sashank Aryal <66688606+sashankaryal@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:13:15 -0500 Subject: [PATCH] make dynamic groups work for fo3d files (#4527) * return modal sample when dynamic groups * fo3d sample recoil bug fix --- app/packages/state/src/recoil/groups.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/packages/state/src/recoil/groups.ts b/app/packages/state/src/recoil/groups.ts index 6164f82660..ba3d4588d3 100644 --- a/app/packages/state/src/recoil/groups.ts +++ b/app/packages/state/src/recoil/groups.ts @@ -454,6 +454,10 @@ export const fo3dSample = selector({ get: ({ get }) => { if (!get(isGroup)) return get(modalSample); + if (get(isDynamicGroup) && !get(hasFo3dSlice)) { + return get(modalSample); + } + if (!get(hasFo3dSlice)) return null; const sample = get(