From d1de1069441d88df66a9280c08edc8cd64774013 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 3 Dec 2024 09:41:21 -0600 Subject: [PATCH] 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. --- packages/ui/src/views/Edit/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/views/Edit/index.tsx b/packages/ui/src/views/Edit/index.tsx index 2c23608c5c..7e8c6d8746 100644 --- a/packages/ui/src/views/Edit/index.tsx +++ b/packages/ui/src/views/Edit/index.tsx @@ -286,7 +286,7 @@ export const DefaultEditView: React.FC = ({ const { state } = await getFormState({ id, collectionSlug, - data: json?.doc, + data: json?.doc || json?.result, docPermissions, docPreferences, globalSlug,