♻️only apply org branding in saas

This commit is contained in:
Fred KISSIE
2025-11-15 06:26:17 +01:00
parent 87f23f582c
commit 2ada05b286
2 changed files with 10 additions and 21 deletions

View File

@@ -137,14 +137,16 @@ export default async function OrgAuthPage(props: {
}
let branding: LoadLoginPageBrandingResponse | null = null;
try {
const res = await priv.get<
AxiosResponse<LoadLoginPageBrandingResponse>
>(`/login-page-branding?orgId=${loginPage.orgId}`);
if (res.status === 200) {
branding = res.data.data;
}
} catch (error) {}
if (build === "saas") {
try {
const res = await priv.get<
AxiosResponse<LoadLoginPageBrandingResponse>
>(`/login-page-branding?orgId=${loginPage.orgId}`);
if (res.status === 200) {
branding = res.data.data;
}
} catch (error) {}
}
return (
<div>