0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-15 11:38:24 -05:00

🐛 Fix comments in viewer mode

This commit is contained in:
Eva 2022-05-05 14:42:43 +02:00 committed by Andrés Moya
parent 37fdf51eaf
commit afa1af6dc2

View file

@ -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}]))