From 6afcbffdec1816cc2cdc2a0db407f6c1676cf864 Mon Sep 17 00:00:00 2001 From: Junyi Date: Sun, 29 Jun 2025 09:34:21 +0800 Subject: [PATCH] fix(client): fault tolerance for settings based on x-acl-action (#7128) --- .../modules/blocks/data-blocks/form/createFormBlockSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx index e29e77446a..8d61728bd0 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx @@ -66,7 +66,7 @@ export const createFormBlockSettings = new SchemaSettings({ useVisible() { const { action } = useFormBlockContext(); const schema = useFieldSchema(); - return !action && schema?.['x-acl-action'].includes('create'); + return !action && schema?.['x-acl-action']?.includes('create'); }, useComponentProps() { const { name } = useCollection_deprecated();