From 8abe8042d70de692f3a16e9812e20ad6aae4a0f4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Sep 2019 06:19:17 +0900 Subject: [PATCH] Fix bug --- .../app/common/views/components/reactions-viewer.details.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/app/common/views/components/reactions-viewer.details.vue b/src/client/app/common/views/components/reactions-viewer.details.vue index 728c58a70..4f1d14b77 100644 --- a/src/client/app/common/views/components/reactions-viewer.details.vue +++ b/src/client/app/common/views/components/reactions-viewer.details.vue @@ -46,6 +46,10 @@ export default Vue.extend({ this.$nextTick(() => { const popover = this.$refs.popover as any; + if (this.source == null) { + this.destroyDom(); + return; + } const rect = this.source.getBoundingClientRect(); const x = rect.left + window.pageXOffset + (this.source.offsetWidth / 2);