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:
Paul
2024-12-03 09:41:21 -06:00
committed by GitHub
parent 6104fe5011
commit d1de106944

View File

@@ -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,