From b6bc8f2a253587ec8f0a1fc17e0af3c6fcee63ab Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 9 May 2023 13:58:58 +0200 Subject: [PATCH] :bug: Fix move file between teams --- frontend/src/app/main/data/dashboard.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/dashboard.cljs b/frontend/src/app/main/data/dashboard.cljs index 86352517b..9b1053a94 100644 --- a/frontend/src/app/main/data/dashboard.cljs +++ b/frontend/src/app/main/data/dashboard.cljs @@ -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 [_ _ _]