Problem: after deleting channel, only that channel is shown

Solution: show remaining channels
This commit is contained in:
Peter Stuifzand 2022-04-18 14:19:37 +02:00
parent 906bcd5493
commit 333c91b4c6

View File

@ -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) {