fix[tags-view]: fixed delete cachedViews bug #395

This commit is contained in:
Pan 2018-01-12 13:30:27 +08:00
parent 76a6eb12e7
commit 3c0696d1a9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const tagsView = {
for (const i of state.cachedViews) { for (const i of state.cachedViews) {
if (i === view.name) { if (i === view.name) {
const index = state.cachedViews.indexOf(i) const index = state.cachedViews.indexOf(i)
state.cachedViews.splice(index, index + 1) state.cachedViews.splice(index, 1)
break break
} }
} }