From 69f9982d260040c48b14438091ee575432b849d8 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 8 Mar 2024 12:33:36 +0100 Subject: [PATCH] :bug: Fix problem with comment thread ignoring filters --- frontend/src/app/main/ui/workspace/viewport/comments.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/comments.cljs b/frontend/src/app/main/ui/workspace/viewport/comments.cljs index 8adbce9cd..ca842d1c6 100644 --- a/frontend/src/app/main/ui/workspace/viewport/comments.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/comments.cljs @@ -81,9 +81,10 @@ (when-let [id (:open local)] (when-let [thread (get threads-map id)] - [:& cmt/thread-comments {:thread (update-position positions thread) - :users users - :zoom zoom}])) + (when (seq (dcm/apply-filters local profile [thread])) + [:& cmt/thread-comments {:thread (update-position positions thread) + :users users + :zoom zoom}]))) (when-let [draft (:comment drawing)] [:& cmt/draft-thread {:draft draft