chore: fix issue of isOrgSite being false after google auth
This commit is contained in:
@@ -65,16 +65,14 @@
|
|||||||
|
|
||||||
if (!data.isOrgSite || !data.org) return;
|
if (!data.isOrgSite || !data.org) return;
|
||||||
|
|
||||||
if ($currentOrg.siteName !== data.org.siteName) {
|
$globalStore.orgSiteName = data.orgSiteName;
|
||||||
$globalStore.orgSiteName = data.orgSiteName;
|
$globalStore.isOrgSite = data.isOrgSite;
|
||||||
$globalStore.isOrgSite = data.isOrgSite;
|
|
||||||
|
|
||||||
console.log('Setting current org to', data.org);
|
console.log('Setting current org to', data.org);
|
||||||
currentOrg.set(data.org);
|
currentOrg.set(data.org);
|
||||||
|
|
||||||
// Setup internal analytics
|
// Setup internal analytics
|
||||||
initOrgAnalytics(data.orgSiteName);
|
initOrgAnalytics(data.orgSiteName);
|
||||||
}
|
|
||||||
|
|
||||||
setTheme(data.org?.theme);
|
setTheme(data.org?.theme);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user