Merge pull request #5559 from penpot/palba-fix-flags-not-setting-login

🐛 Fix feature flags not setting on login
This commit is contained in:
Alejandro
2025-01-13 10:57:37 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -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]

View File

@@ -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)