fix: filemanger

This commit is contained in:
katherinehhh 2023-05-08 11:13:57 +08:00
parent 7a281a578c
commit cba122e921

View File

@ -84,7 +84,7 @@ const InternalFileManager = (props) => {
};
useEffect(() => {
if (value) {
if (value && Object.keys(value).length > 0) {
const opts = (Array.isArray(value) ? value : value ? [value] : []).map((option) => {
const label = option[fieldNames.label];
return {