From eefad311793fad6368a0fc8bb61482bddf25e657 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 13 Nov 2024 09:54:24 +0800 Subject: [PATCH] fix(client): support o2o and m2m (array) to use file collection (#5637) --- packages/core/client/src/collection-manager/interfaces/o2o.tsx | 2 +- .../plugins/@nocobase/plugin-field-m2m-array/src/client/mbm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/collection-manager/interfaces/o2o.tsx b/packages/core/client/src/collection-manager/interfaces/o2o.tsx index ce348cece4..12c136924c 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2o.tsx @@ -306,7 +306,7 @@ export class OHOFieldInterface extends CollectionFieldInterface { type: 'string', title: '{{t("Target collection")}}', required: true, - 'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'], + 'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'], 'x-decorator': 'FormItem', 'x-component': 'Select', 'x-disabled': '{{ !createOnly }}', diff --git a/packages/plugins/@nocobase/plugin-field-m2m-array/src/client/mbm.ts b/packages/plugins/@nocobase/plugin-field-m2m-array/src/client/mbm.ts index 4ed72a54ee..8d8a0072d5 100644 --- a/packages/plugins/@nocobase/plugin-field-m2m-array/src/client/mbm.ts +++ b/packages/plugins/@nocobase/plugin-field-m2m-array/src/client/mbm.ts @@ -104,7 +104,7 @@ export class MBMFieldInterface extends CollectionFieldInterface { type: 'string', title: '{{t("Target collection")}}', required: true, - 'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'], + 'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'], 'x-decorator': 'FormItem', 'x-component': 'Select', 'x-disabled': '{{ !createOnly }}',