Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2025-04-03 08:44:05 +00:00
commit 47e967b9da

View File

@ -107,7 +107,7 @@ AssociationFilter.BlockDesigner = AssociationFilterBlockDesigner;
AssociationFilter.useAssociationField = () => {
const fieldSchema = useFieldSchema();
const collection = useCollection();
return React.useMemo(() => collection.getField(fieldSchema.name as any), [fieldSchema.name]);
return React.useMemo(() => collection?.getField(fieldSchema?.name as any), [fieldSchema?.name]);
};
export class AssociationFilterPlugin extends Plugin {