mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05: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
|
@ -21,7 +21,8 @@
|
||||||
- Prevent deleting or moving the drafts project [Taiga #1935](https://tree.taiga.io/project/penpot/issue/1935).
|
- 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 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 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
|
### :arrow_up: Deps updates
|
||||||
### :boom: Breaking changes
|
### :boom: Breaking changes
|
||||||
|
|
|
@ -175,10 +175,12 @@
|
||||||
:files files})))))))]
|
:files files})))))))]
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
(mf/deps show?)
|
||||||
(fn []
|
(fn []
|
||||||
(->> (rp/query! :all-projects)
|
(when show?
|
||||||
(rx/map group-by-team)
|
(->> (rp/query! :all-projects)
|
||||||
(rx/subs #(reset! teams %)))))
|
(rx/map group-by-team)
|
||||||
|
(rx/subs #(reset! teams %))))))
|
||||||
|
|
||||||
(when current-team
|
(when current-team
|
||||||
(let [sub-options (conj (vec (for [project current-projects]
|
(let [sub-options (conj (vec (for [project current-projects]
|
||||||
|
|
Loading…
Add table
Reference in a new issue