Skip to content

Commit

Permalink
fix(ui): data disappearing when form state updates in globals (#9682)
Browse files Browse the repository at this point in the history
Fixes a bug where data would visually disappear from the form when
merging new form stats when saving globals.
  • Loading branch information
paulpopus authored Dec 3, 2024
1 parent 6104fe5 commit d1de106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/views/Edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export const DefaultEditView: React.FC<ClientSideEditViewProps> = ({
const { state } = await getFormState({
id,
collectionSlug,
data: json?.doc,
data: json?.doc || json?.result,
docPermissions,
docPreferences,
globalSlug,
Expand Down

0 comments on commit d1de106

Please sign in to comment.