mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
🐛 Fix feature flags not setting on login
This commit is contained in:
parent
b22323a484
commit
e380289e34
2 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,11 @@
|
||||||
(let [f (obj/get global "externalContextInfo")]
|
(let [f (obj/get global "externalContextInfo")]
|
||||||
(when (fn? f) (f))))
|
(when (fn? f) (f))))
|
||||||
|
|
||||||
|
(defn initialize-external-context-info
|
||||||
|
[]
|
||||||
|
(let [f (obj/get global "initializeExternalConfigInfo")]
|
||||||
|
(when (fn? f) (f))))
|
||||||
|
|
||||||
;; --- Helper Functions
|
;; --- Helper Functions
|
||||||
|
|
||||||
(defn ^boolean check-browser? [candidate]
|
(defn ^boolean check-browser? [candidate]
|
||||||
|
|
|
@ -207,6 +207,7 @@
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
(when (is-authenticated? profile)
|
(when (is-authenticated? profile)
|
||||||
|
(cf/initialize-external-context-info)
|
||||||
(->> (rx/concat
|
(->> (rx/concat
|
||||||
(rx/of (profile-fetched profile)
|
(rx/of (profile-fetched profile)
|
||||||
(fetch-teams)
|
(fetch-teams)
|
||||||
|
|
Loading…
Add table
Reference in a new issue