diff --git a/packages/app/src/components/form.fields/upload/index.tsx b/packages/app/src/components/form.fields/upload/index.tsx index cc50dcea28..3134d1119a 100644 --- a/packages/app/src/components/form.fields/upload/index.tsx +++ b/packages/app/src/components/form.fields/upload/index.tsx @@ -96,6 +96,12 @@ export const getImageByUrl = (url, options) => { } function toFileObject(item) { + console.log(item); + if (typeof item !== 'object') { + return { + id: item, + } + } if (item.id && item.uid && item.url) { return item; } @@ -143,6 +149,7 @@ export const Upload = connect({