Add some minor performance improvements to dashboard components

This commit is contained in:
Andrey Antukh 2023-05-09 14:05:19 +02:00
parent 35969e9f26
commit bf3888585a
4 changed files with 32 additions and 27 deletions

View file

@ -131,7 +131,7 @@
on-move
(fn [team-id project-id]
(let [params {:ids (set (map :id files))
(let [params {:ids (into #{} (map :id) files)
:project-id project-id}]
(fn []
(st/emit! (dd/move-files
@ -213,7 +213,7 @@
(rx/map group-by-team)
(rx/subs #(when (mf/ref-val mounted-ref)
(reset! teams %)))))))
(when current-team
(let [sub-options (concat (vec (for [project current-projects]
{:option-name (get-project-name project)