From 647beec1e8c1398febd3563d96a821ac3df385b6 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 6 Jul 2023 09:29:54 +0200 Subject: [PATCH] :bug: Fix problem with comments when user left the team --- CHANGES.md | 1 + frontend/src/app/main/data/comments.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 0530a0bcf..c16729c42 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -45,6 +45,7 @@ - Fix cache issues with share-links [Taiga #5559](https://tree.taiga.io/project/penpot/issue/5559) - Makes height priority for the rows/columns grids [#2774](https://github.com/penpot/penpot/issues/2774) - Fix problem with comments mode not staying [#3363](https://github.com/penpot/penpot/issues/3363) +- Fix problem with comments when user left the team [Taiga #5562](https://tree.taiga.io/project/penpot/issue/5562) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/data/comments.cljs b/frontend/src/app/main/data/comments.cljs index e85e04f3a..ce58747df 100644 --- a/frontend/src/app/main/data/comments.cljs +++ b/frontend/src/app/main/data/comments.cljs @@ -282,7 +282,7 @@ (fetched [[users comments] state] (let [state (-> state (assoc :comment-threads (d/index-by :id comments)) - (assoc :current-file-comments-users (d/index-by :id users)))] + (update :current-file-comments-users merge (d/index-by :id users)))] (reduce set-comment-threds state comments)))] (ptk/reify ::retrieve-comment-threads