Skip to content

Commit

Permalink
fix(core): fix stale fieldGroupState memo result
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Sep 16, 2024
1 parent 121c0af commit 47cd411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/core/form/store/formState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function createPrepareFormState({
collapsedFieldSets: getId(parent.collapsedFieldSets?.children?.[field.name]),
collapsedPaths: getId(parent.collapsedPaths?.children?.[field.name]),
currentUser: getId(parent.currentUser),
fieldGroupState: getId(parent.fieldGroupState?.children?.[field.name]),
fieldGroupState: getId(parent.fieldGroupState),
hidden:
parent.hidden === true ||
parent.hidden?.value ||
Expand Down

0 comments on commit 47cd411

Please sign in to comment.