From 886766cca5a822ea9ad1b2b8b2c00eab37bbc109 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 26 May 2020 15:04:44 +0900 Subject: [PATCH] fix --- src/client/components/notification.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue index 3c6b8524ea..4fde7d3748 100644 --- a/src/client/components/notification.vue +++ b/src/client/components/notification.vue @@ -112,8 +112,10 @@ export default Vue.extend({ }, beforeDestroy() { - if (!this.notification.isRead) this.readObserver.unobserve(this.$el); - this.connection.dispose(); + if (!this.notification.isRead) { + this.readObserver.unobserve(this.$el); + this.connection.dispose(); + } }, methods: {