mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
fix: filter failed files
This commit is contained in:
parent
d321b95fb0
commit
cd6d444a3f
@ -171,7 +171,7 @@ function toValues(fileList) {
|
||||
if (!Array.isArray(fileList) && typeof fileList === 'object') {
|
||||
fileList = [fileList];
|
||||
}
|
||||
return fileList.map(toValue);
|
||||
return fileList.map(toValue).filter(item => item.id);
|
||||
}
|
||||
|
||||
export function getImgUrls(value) {
|
||||
@ -213,7 +213,8 @@ export const Upload = connect({
|
||||
setImgIndex(index);
|
||||
setVisible(true);
|
||||
} else {
|
||||
window.location.href = value.url;
|
||||
window.open(value.url)
|
||||
// window.location.href = value.url;
|
||||
}
|
||||
}}
|
||||
// itemRender={(originNode, file, fileList) => {
|
||||
|
Loading…
Reference in New Issue
Block a user