fix[tags-view]: fixed bug in DEL_OTHERS_VIEWS (#368)

This commit is contained in:
tlx6550 2017-12-22 10:29:47 +08:00 committed by 花裤衩
parent 7fef8568c2
commit fe25c4d96b
1 changed files with 1 additions and 1 deletions

View File

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