mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix incorrect handling of user lang selection.
That causes double loading of the http resources in some circumstances.
This commit is contained in:
parent
a92820e910
commit
464a686c04
3 changed files with 16 additions and 15 deletions
|
@ -79,20 +79,20 @@
|
|||
|
||||
(defn init-ui
|
||||
[]
|
||||
(st/emit! (rt/initialize-router ui/routes)
|
||||
(rt/initialize-history on-navigate))
|
||||
|
||||
(st/emit! (udu/fetch-profile)
|
||||
(udu/fetch-user-teams))
|
||||
(mf/mount (mf/element ui/app) (dom/get-element "app"))
|
||||
(mf/mount (mf/element modal) (dom/get-element "modal")))
|
||||
(mf/mount (mf/element modal) (dom/get-element "modal")))
|
||||
|
||||
(defn ^:export init
|
||||
[]
|
||||
(i18n/init! cfg/translations)
|
||||
(theme/init! cfg/themes)
|
||||
(st/init)
|
||||
(init-ui))
|
||||
(init-ui)
|
||||
|
||||
(st/emit! (rt/initialize-router ui/routes)
|
||||
(rt/initialize-history on-navigate)
|
||||
(udu/fetch-profile)
|
||||
(udu/fetch-user-teams)))
|
||||
|
||||
(defn reinit
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue