fix(client): support o2o and m2m (array) to use file collection (#5637)

This commit is contained in:
Junyi 2024-11-13 09:54:24 +08:00 committed by GitHub
parent 4441602149
commit eefad31179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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