fix(client): support file collection as target of one-to-many association (#5619)

* fix(client): support file collecion as target of one-to-many association

* fix(client): fix load collection
This commit is contained in:
Junyi 2024-11-08 18:25:26 +08:00 committed by GitHub
parent 38123129e2
commit b186a5eb3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ export class O2MFieldInterface 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

@ -118,7 +118,7 @@ export class O2OFieldInterface 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 }}',