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

Merge pull request #3202 from penpot/superalex-fix-move-file-from-one-team-to-another

🐛 Fix move file between teams
This commit is contained in:
Alejandro 2023-05-09 14:38:46 +02:00 committed by GitHub
commit ee8f071025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 [_ _ _]