Compare commits

...

1 Commits

Author SHA1 Message Date
Alejandro Alonso
2272bdc02e 🐛 Fix move file between teams 2023-05-09 13:58:58 +02:00

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