diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 9940c752e6..6d8d12337f 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -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();