From c8ee97883cee641669088d3c8aef80a6a1357c65 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Sun, 19 Jun 2022 17:56:58 +0100 Subject: [PATCH] fix(frontend): adresses #806 --- .../frontend/src/main/components/viewer/CommentsOverlay.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue index daf766495..8b28aced1 100644 --- a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue +++ b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue @@ -242,7 +242,8 @@ export default { c.bouncing = false if ( this.localComments.findIndex((lc) => c.id === lc.id) === -1 && - !c.archived + !c.archived && + c.data.location ) { this.localComments.push({ ...c }) } @@ -289,7 +290,8 @@ export default { if (prevResult.comments.items.find((c) => c.id === newComment.id)) { return } - if (!newComment.archived) this.localComments.push(newComment) + if (!newComment.archived && newComment.data.location) + this.localComments.push(newComment) setTimeout(() => { // console.log('updateQuery timeout')