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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user