fix(client): fault tolerance for settings based on x-acl-action (#7128)

This commit is contained in:
Junyi 2025-06-29 09:34:21 +08:00 committed by GitHub
parent 8d91e1fded
commit 6afcbffdec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();