0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix comment number in sidebar

This commit is contained in:
alonso.torres 2024-03-13 14:07:36 +01:00
parent c47fe2954a
commit b00b77895f

View file

@ -274,7 +274,9 @@
(ptk/reify ::delete-comment (ptk/reify ::delete-comment
ptk/UpdateEvent ptk/UpdateEvent
(update [_ state] (update [_ state]
(d/update-in-when state [:comments thread-id] dissoc id)) (-> state
(d/update-in-when [:comments thread-id] dissoc id)
(d/update-in-when [:comment-threads thread-id :count-comments] dec)))
ptk/WatchEvent ptk/WatchEvent
(watch [_ state _] (watch [_ state _]