diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx index 90de53c42..4ef9e4941 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx @@ -18,14 +18,17 @@ const AssociationCascader = connect((props) => { const titleField = cm.getCollection(collection).titleField; const joinTitleField = cm.getCollection(collection + '.' + associationField).titleField; + const params = { + appends: [associationField], + fields: [titleField], + pageSize: 99999, + filter: props?.params?.filter ? { ...props?.params?.filter } : {}, + }; + const { data } = useRequest({ resource: collection, action: 'list', - params: { - appends: [associationField], - fields: [titleField], - pageSize: 99999, - }, + params, }); const options = useMemo(() => {