From 31325556a1db6c22e999b72212fe09d12afeef26 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 9 Oct 2024 15:07:00 +0800 Subject: [PATCH] fix(plugin-file-manager): fix storage configuration error (#5378) --- .../plugin-file-manager/src/client/FileStorage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx index 35a481ddf5..27a8bbfcbe 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx @@ -38,7 +38,7 @@ export const CreateStorage = () => { [uid()]: { type: 'void', 'x-component': 'Action.Drawer', - 'x-decorator': 'FormV2', + 'x-decorator': 'Form', 'x-decorator-props': { initialValue: { type: storageType.name, @@ -105,8 +105,8 @@ export const EditStorage = () => { onClick={() => { setVisible(true); const storageType = plugin.storageTypes.get(record.type); - if (storageType.properties['default']) { - storageType.properties['default']['x-reactions'] = (field) => { + if (storageType.fieldset['default']) { + storageType.fieldset['default']['x-reactions'] = (field) => { if (field.initialValue) { field.disabled = true; } else { @@ -120,7 +120,7 @@ export const EditStorage = () => { [uid()]: { type: 'void', 'x-component': 'Action.Drawer', - 'x-decorator': 'FormV2', + 'x-decorator': 'Form', 'x-decorator-props': { initialValue: { ...record,