diff --git a/packages/editor/src/utils/data-source/index.ts b/packages/editor/src/utils/data-source/index.ts index 7d8dbe22..bc4242e4 100644 --- a/packages/editor/src/utils/data-source/index.ts +++ b/packages/editor/src/utils/data-source/index.ts @@ -14,7 +14,7 @@ const fillConfig = (config: FormConfig): FormConfig => [ { name: 'fields', type: 'data-source-fields', - defaultValue: [], + defaultValue: () => [], }, ], }, @@ -25,7 +25,7 @@ const fillConfig = (config: FormConfig): FormConfig => [ { name: 'methods', type: 'data-source-methods', - defaultValue: [], + defaultValue: () => [], }, ], },