mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
47e967b9da
@ -107,7 +107,7 @@ AssociationFilter.BlockDesigner = AssociationFilterBlockDesigner;
|
|||||||
AssociationFilter.useAssociationField = () => {
|
AssociationFilter.useAssociationField = () => {
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
const collection = useCollection();
|
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 {
|
export class AssociationFilterPlugin extends Plugin {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user