mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +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) {
|
if (designable) {
|
||||||
insertSelector(schema.Selector);
|
insertSelector(schema.Selector);
|
||||||
} else {
|
} else {
|
||||||
|
const selectSchema = fieldSchema.reduceProperties((buf, s) => {
|
||||||
|
if (s['x-component'] === 'AssociationField.Selector') {
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
return buf;
|
||||||
|
}, null);
|
||||||
|
if (!selectSchema) {
|
||||||
fieldSchema.addProperty('selector', schema.Selector);
|
fieldSchema.addProperty('selector', schema.Selector);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
setVisibleSelector(true);
|
setVisibleSelector(true);
|
||||||
setSelectedRows([]);
|
setSelectedRows([]);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (value && Object.keys(value).length > 0) {
|
if (value && Object.keys(value).length > 0) {
|
||||||
const opts = (Array.isArray(value) ? value : value ? [value] : []).filter(Boolean).map((option) => {
|
const opts = (Array.isArray(value) ? value : value ? [value] : []).filter(Boolean).map((option) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user