Add return to prevent multiple uploads
This commit is contained in:
parent
608112d56c
commit
11173c520b
@ -19,6 +19,7 @@ export default function(state, emitter) {
|
||||
}
|
||||
|
||||
emitter.emit('upload', { file, type: 'paste' });
|
||||
return; // return here since only one file is allowed to be uploaded at a time
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user