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