mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 11:36:11 +02:00
✨ Add some minor performance improvements to dashboard components
This commit is contained in:
parent
35969e9f26
commit
bf3888585a
4 changed files with 32 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue