Skip to content

Commit

Permalink
make dynamic groups work for fo3d files (#4527)
Browse files Browse the repository at this point in the history
* return modal sample when dynamic groups

* fo3d sample recoil bug fix
  • Loading branch information
sashankaryal authored Jun 26, 2024
1 parent 926d32d commit 1c80c2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/packages/state/src/recoil/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c80c2e

Please sign in to comment.