fix[tags-view]: fixed delete cachedViews bug #395
This commit is contained in:
parent
76a6eb12e7
commit
3c0696d1a9
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue