Skip to content

Commit d1de106

Browse files
authored
fix(ui): data disappearing when form state updates in globals (#9682)
Fixes a bug where data would visually disappear from the form when merging new form stats when saving globals.
1 parent 6104fe5 commit d1de106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/views/Edit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export const DefaultEditView: React.FC<ClientSideEditViewProps> = ({
286286
const { state } = await getFormState({
287287
id,
288288
collectionSlug,
289-
data: json?.doc,
289+
data: json?.doc || json?.result,
290290
docPermissions,
291291
docPreferences,
292292
globalSlug,

0 commit comments

Comments
 (0)