From 2cf3e37b7a99932c9c4c8c0e25d8690217339f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?luis=CE=B4=CE=BC?= Date: Wed, 26 Feb 2025 14:29:51 +0100 Subject: [PATCH] :bug: Fix comment update fails in viewer (#5958) * :bug: Fix comment update fails in viewer * :bug: Reload team members in workspace but not in viewer --- frontend/src/app/main/data/comments.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/comments.cljs b/frontend/src/app/main/data/comments.cljs index f07758a9c..ec10bccbb 100644 --- a/frontend/src/app/main/data/comments.cljs +++ b/frontend/src/app/main/data/comments.cljs @@ -413,8 +413,8 @@ (->> (rp/cmd! :get-comment-threads {:file-id file-id :share-id share-id}) (rx/map comment-threads-fetched)) - ;; Refresh team members - (rx/of (dtm/fetch-members))))))) + (when (:workspace-local state) + (rx/of (dtm/fetch-members)))))))) (defn retrieve-comments [thread-id]