diff --git a/packages/core/client/src/collection-manager/templates/expression.tsx b/packages/core/client/src/collection-manager/templates/expression.tsx index 1bd9adc5a..2f50b90b1 100644 --- a/packages/core/client/src/collection-manager/templates/expression.tsx +++ b/packages/core/client/src/collection-manager/templates/expression.tsx @@ -35,7 +35,7 @@ export const expression: ICollectionTemplate = { title: '{{t("Collection")}}', 'x-component': 'CollectionSelect', 'x-component-props': { - multiple: true, + // multiple: true, }, }, }, diff --git a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx index d02dac90a..3a3dadead 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx @@ -28,7 +28,15 @@ export const CollectionSelect = connect( const options = useOptions(props); const { t } = useTranslation(); - return (option?.label ?? '').includes(input)} + options={options} + /> + ); }, mapReadPretty( observer((props: CollectionSelectProps) => { diff --git a/packages/plugins/workflow/src/client/schemas/collection.ts b/packages/plugins/workflow/src/client/schemas/collection.ts index 0af9cf0e1..582534641 100644 --- a/packages/plugins/workflow/src/client/schemas/collection.ts +++ b/packages/plugins/workflow/src/client/schemas/collection.ts @@ -7,12 +7,11 @@ export const collection = { type: 'string', title: '{{t("Collection")}}', required: true, - 'x-reactions': ['{{useCollectionDataSource()}}'], + 'x-reactions': [], 'x-decorator': 'FormItem', - 'x-component': 'Select', + 'x-component': 'CollectionSelect', 'x-component-props': { dropdownMatchSelectWidth: false, - placeholder: '{{t("Select collection")}}', }, };