0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00

🐛 Fix move file between teams

This commit is contained in:
Alejandro Alonso 2023-05-09 13:58:58 +02:00
parent 353de39d4d
commit b6bc8f2a25

View file

@ -930,8 +930,8 @@
(update [_ state] (update [_ state]
(let [origin-project (get-in state [:dashboard-files (first ids) :project-id])] (let [origin-project (get-in state [:dashboard-files (first ids) :project-id])]
(-> state (-> state
(update-in [:dashboard-projects origin-project :count] #(- % (count ids))) (d/update-in-when [:dashboard-projects origin-project :count] #(- % (count ids)))
(update-in [:dashboard-projects project-id :count] #(+ % (count ids)))))) (d/update-in-when [:dashboard-projects project-id :count] #(+ % (count ids))))))
ptk/WatchEvent ptk/WatchEvent
(watch [_ _ _] (watch [_ _ _]