mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix move file between teams
This commit is contained in:
parent
353de39d4d
commit
92a5febef4
@ -930,8 +930,8 @@
|
||||
(update [_ state]
|
||||
(let [origin-project (get-in state [:dashboard-files (first ids) :project-id])]
|
||||
(-> state
|
||||
(update-in [:dashboard-projects origin-project :count] #(- % (count ids)))
|
||||
(update-in [:dashboard-projects project-id :count] #(+ % (count ids))))))
|
||||
(d/update-in-when [:dashboard-projects origin-project :count] #(- % (count ids)))
|
||||
(d/update-in-when [:dashboard-projects project-id :count] #(+ % (count ids))))))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user