From 8807894890b7c09619815c4f8e3d9a14a32c5d6d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 9 Jun 2018 22:25:15 +0900 Subject: [PATCH] Fix bug --- src/client/app/store.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/store.ts b/src/client/app/store.ts index 0dbdf9bd5e..267c804fbd 100644 --- a/src/client/app/store.ts +++ b/src/client/app/store.ts @@ -180,6 +180,7 @@ export default (os: MiOS) => new Vuex.Store({ removeDeckColumn(state, id) { state.deck.columns = state.deck.columns.filter(c => c.id != id); state.deck.layout = state.deck.layout.map(ids => ids.filter(x => x != id)); + state.deck.layout = state.deck.layout.filter(ids => ids.length > 0); }, swapDeckColumn(state, x) {