Problem: after deleting channel, only that channel is shown
Solution: show remaining channels
This commit is contained in:
parent
906bcd5493
commit
333c91b4c6
|
@ -135,7 +135,7 @@ export default new Vuex.Store({
|
||||||
|
|
||||||
state.eventSource.addEventListener('delete channel', evt => {
|
state.eventSource.addEventListener('delete channel', evt => {
|
||||||
let msg = JSON.parse(evt.data)
|
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) {
|
newSearchResults(state, items) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user