mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix(Collapse): avoid crashing
This commit is contained in:
parent
9e6a5bd2fb
commit
3fb5afc33b
@ -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