From 333c91b4c696a963137773e84e6e9623852664fe Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Mon, 18 Apr 2022 14:19:37 +0200 Subject: [PATCH] Problem: after deleting channel, only that channel is shown Solution: show remaining channels --- src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.js b/src/store.js index d15b4e8..627b853 100644 --- a/src/store.js +++ b/src/store.js @@ -135,7 +135,7 @@ export default new Vuex.Store({ state.eventSource.addEventListener('delete channel', evt => { let msg = JSON.parse(evt.data) - state.channels = _.remove(state.channels, it => it.uid === msg.uid) + state.channels = _.filter(state.channels, it => it.uid !== msg.uid) }) }, newSearchResults(state, items) {