mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:56:16 +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