web: fix API browser error (#5402)
* web: fix API browser error Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix lint Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update locale Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -24,6 +24,19 @@ export function globalAK(): GlobalAuthentik {
|
||||
ak.tenant = CurrentTenantFromJSON(ak.tenant);
|
||||
ak.config = ConfigFromJSON(ak.config);
|
||||
}
|
||||
if (!ak) {
|
||||
return {
|
||||
config: ConfigFromJSON({
|
||||
capabilities: [],
|
||||
}),
|
||||
tenant: CurrentTenantFromJSON({
|
||||
ui_footer_links: [],
|
||||
}),
|
||||
versionFamily: "",
|
||||
versionSubdomain: "",
|
||||
build: "",
|
||||
};
|
||||
}
|
||||
return ak;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user