mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix comment number in sidebar
This commit is contained in:
parent
c47fe2954a
commit
b00b77895f
@ -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 _]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user