Add return to prevent multiple uploads

This commit is contained in:
Rongjian Zhang 2018-06-07 10:46:55 +08:00
parent 608112d56c
commit 11173c520b
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
});
}