mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-19 06:31:14 +00:00
use forEach
This commit is contained in:
parent
4c882a84b6
commit
c2a9a8d22d
@ -416,12 +416,12 @@ export default function ProcessModelShow() {
|
||||
|
||||
const checkDuplicateFile = (event: any) => {
|
||||
if (processModel && processModel.files.length > 0) {
|
||||
for (const file in processModel.files) {
|
||||
if (processModel.files[file].name === filesToUpload[0].name) {
|
||||
displayOverwriteConfirmation(processModel.files[file].name);
|
||||
processModel.files.forEach((file) => {
|
||||
if (file.name === filesToUpload[0].name) {
|
||||
displayOverwriteConfirmation(file.name);
|
||||
setFileUploadEvent(event);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user