mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 11:36:38 +02:00
🐛 Fix repeated fetch on file selection
This commit is contained in:
parent
ce912c7430
commit
f44675a1e4
2 changed files with 7 additions and 4 deletions
|
@ -175,10 +175,12 @@
|
|||
:files files})))))))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps show?)
|
||||
(fn []
|
||||
(->> (rp/query! :all-projects)
|
||||
(rx/map group-by-team)
|
||||
(rx/subs #(reset! teams %)))))
|
||||
(when show?
|
||||
(->> (rp/query! :all-projects)
|
||||
(rx/map group-by-team)
|
||||
(rx/subs #(reset! teams %))))))
|
||||
|
||||
(when current-team
|
||||
(let [sub-options (conj (vec (for [project current-projects]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue