From afa1af6dc266b04fececc43996598ad7dd41a788 Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 5 May 2022 14:42:43 +0200 Subject: [PATCH] :bug: Fix comments in viewer mode --- frontend/src/app/main/ui/viewer/comments.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/viewer/comments.cljs b/frontend/src/app/main/ui/viewer/comments.cljs index 7d547383d7..44cd264afc 100644 --- a/frontend/src/app/main/ui/viewer/comments.cljs +++ b/frontend/src/app/main/ui/viewer/comments.cljs @@ -144,8 +144,9 @@ :key (:seqn item)}])) (when-let [id (:open cstate)] - (when-let [thread (-> (get threads-map id) - (update :position gpt/transform modifier1))] + (when-let [thread (as-> (get threads-map id) $ + (when (some? $) + (update $ :position gpt/transform modifier1)))] [:& cmt/thread-comments {:thread thread :users users :zoom zoom}]))