mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 10:42:19 +08:00
fix(client): fault tolerance for settings based on x-acl-action (#7128)
This commit is contained in:
parent
8d91e1fded
commit
6afcbffdec
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user