0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 22:49:01 -05:00

🐛 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

@ -21,7 +21,8 @@
- Prevent deleting or moving the drafts project [Taiga #1935](https://tree.taiga.io/project/penpot/issue/1935).
- Fix problem with zoom and selection [Taiga #1919](https://tree.taiga.io/project/penpot/issue/1919)
- Fix problem with borders on shape export [#1092](https://github.com/penpot/penpot/issues/1092)
- Fix thumbnail cropping issue [#Taiga 1964](https://tree.taiga.io/project/penpot/issue/1964)
- Fix thumbnail cropping issue [Taiga #1964](https://tree.taiga.io/project/penpot/issue/1964)
- Fix repeated fetch on file selection [Taiga #1933](https://tree.taiga.io/project/penpot/issue/1933)
### :arrow_up: Deps updates
### :boom: Breaking changes

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]