use one Archive instance for state.archive

This commit is contained in:
Danny Coates
2018-12-21 10:27:46 -08:00
parent 989137342b
commit c585c34c01
6 changed files with 14 additions and 13 deletions

View File

@@ -11,14 +11,14 @@ module.exports = function(state, emit) {
let left = '';
if (state.uploading) {
left = archiveTile.uploading(state, emit);
} else if (state.archive) {
} else if (state.archive.numFiles > 0) {
left = archiveTile.wip(state, emit);
} else {
left = archiveTile.empty(state, emit);
}
archives.reverse();
const right =
archives.length < 1
archives.length === 0
? intro(state)
: list(
archives,