clear settings after removing last file from wip

This commit is contained in:
Danny Coates
2019-03-06 10:43:58 -08:00
parent 7f9674f494
commit fb9f35413c
2 changed files with 4 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ export default function(state, emitter) {
emitter.on('removeUpload', file => {
state.archive.remove(file);
if (state.archive.numFiles === 0) {
state.archive.clear();
}
render();
});