mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
fix: allowMultiple should not appear on read-only association fields (#5017)
This commit is contained in:
parent
d37c71aaed
commit
bd573b6ee2
@ -362,9 +362,10 @@ export const selectComponentFieldSettings = new SchemaSettings({
|
||||
{
|
||||
...allowMultiple,
|
||||
useVisible() {
|
||||
const isFieldReadPretty = useIsFieldReadPretty();
|
||||
const isAssociationField = useIsAssociationField();
|
||||
const IsShowMultipleSwitch = useIsShowMultipleSwitch();
|
||||
return isAssociationField && IsShowMultipleSwitch();
|
||||
return !isFieldReadPretty && isAssociationField && IsShowMultipleSwitch();
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user