mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 10:42:19 +08:00
fix: issue where file table selector is not display in non-configuration mode when using file select (#5874)
This commit is contained in:
parent
e72bb89909
commit
8f8f9e4af2
@ -171,12 +171,19 @@ const InternalFileManager = (props) => {
|
||||
if (designable) {
|
||||
insertSelector(schema.Selector);
|
||||
} else {
|
||||
fieldSchema.addProperty('selector', schema.Selector);
|
||||
const selectSchema = fieldSchema.reduceProperties((buf, s) => {
|
||||
if (s['x-component'] === 'AssociationField.Selector') {
|
||||
return s;
|
||||
}
|
||||
return buf;
|
||||
}, null);
|
||||
if (!selectSchema) {
|
||||
fieldSchema.addProperty('selector', schema.Selector);
|
||||
}
|
||||
}
|
||||
setVisibleSelector(true);
|
||||
setSelectedRows([]);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (value && Object.keys(value).length > 0) {
|
||||
const opts = (Array.isArray(value) ? value : value ? [value] : []).filter(Boolean).map((option) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user