Remove modal in checkUploadFile()
This commit is contained in:
parent
2bcc40a312
commit
9e9888d002
|
@ -103,10 +103,12 @@ class FileTree extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkUploadFile(info) {
|
checkUploadFile(info) {
|
||||||
for (let i = 0; i < info.fileList.length; i++) {
|
if (Conf.EnableExtraPages) {
|
||||||
const filename = info.fileList[i].name;
|
for (let i = 0; i < info.fileList.length; i++) {
|
||||||
if (this.getCacheApp(filename) === "" && filename.endsWith(".txt")) {
|
const filename = info.fileList[i].name;
|
||||||
return true;
|
if (this.getCacheApp(filename) === "" && filename.endsWith(".txt")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue