mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
🐛 Fix comment number in sidebar
This commit is contained in:
parent
c47fe2954a
commit
b00b77895f
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@
|
|||
(ptk/reify ::delete-comment
|
||||
ptk/UpdateEvent
|
||||
(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
|
||||
(watch [_ state _]
|
||||
|
|
Loading…
Add table
Reference in a new issue