🐛 Fix repeated fetch on file selection

This commit is contained in:
alonso.torres 2021-08-31 12:09:14 +02:00
parent ce912c7430
commit f44675a1e4
2 changed files with 7 additions and 4 deletions

View file

@ -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]