mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +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() {
|
useVisible() {
|
||||||
const { action } = useFormBlockContext();
|
const { action } = useFormBlockContext();
|
||||||
const schema = useFieldSchema();
|
const schema = useFieldSchema();
|
||||||
return !action && schema?.['x-acl-action'].includes('create');
|
return !action && schema?.['x-acl-action']?.includes('create');
|
||||||
},
|
},
|
||||||
useComponentProps() {
|
useComponentProps() {
|
||||||
const { name } = useCollection_deprecated();
|
const { name } = useCollection_deprecated();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user