mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -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")]
|
||||
(when (fn? f) (f))))
|
||||
|
||||
(defn initialize-external-context-info
|
||||
[]
|
||||
(let [f (obj/get global "initializeExternalConfigInfo")]
|
||||
(when (fn? f) (f))))
|
||||
|
||||
;; --- Helper Functions
|
||||
|
||||
(defn ^boolean check-browser? [candidate]
|
||||
|
|
|
@ -207,6 +207,7 @@
|
|||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(when (is-authenticated? profile)
|
||||
(cf/initialize-external-context-info)
|
||||
(->> (rx/concat
|
||||
(rx/of (profile-fetched profile)
|
||||
(fetch-teams)
|
||||
|
|
Loading…
Add table
Reference in a new issue