fix: error reported after deleting the associationFilter block linkage field (#2038)

This commit is contained in:
katherinehhh 2023-06-13 10:12:51 +08:00 committed by GitHub
parent 97a4ef7422
commit a6892dfff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -957,6 +957,9 @@ const isOptionalField = (field) => {
export const useAssociationFilterBlockProps = () => {
const collectionField = AssociationFilter.useAssociationField();
if (!collectionField) {
return {};
}
const fieldSchema = useFieldSchema();
const optionalFieldList = useOptionalFieldList();
const { getDataBlocks } = useFilterBlock();