🐛 Fix problem with comments when user left the team

This commit is contained in:
alonso.torres 2023-07-06 09:29:54 +02:00
parent dd9f637f02
commit 647beec1e8
2 changed files with 2 additions and 1 deletions

View file

@ -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