mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
Merge pull request #5559 from penpot/palba-fix-flags-not-setting-login
🐛 Fix feature flags not setting on login
This commit is contained in:
commit
b5d731ca72
@ -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…
x
Reference in New Issue
Block a user