Skip to content

Commit 0b859c2

Browse files
committed
fix: unsubscribe from board channel when open a card
1 parent 4a6bd32 commit 0b859c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front-end/src/views/BoardPage.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export default {
136136
beforeRouteLeave (to, from, next) {
137137
console.log('[BoardPage] Before route leave')
138138
next()
139-
this.unsubscribeFromRealTimeUpdate(this.board.id)
139+
if (to.name !== 'card') {
140+
this.unsubscribeFromRealTimeUpdate(this.board.id)
141+
}
140142
},
141143
mounted () {
142144
console.log('[BoardPage] Mouted')

0 commit comments

Comments
 (0)