Null checking logo configs

This commit is contained in:
Dean 2023-06-26 10:22:03 +01:00
parent 6f24772f49
commit 10108fb543
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ export async function save(ctx: UserCtx<Config>) {
} }
function enrichOIDCLogos(oidcLogos: OIDCLogosConfig) { function enrichOIDCLogos(oidcLogos: OIDCLogosConfig) {
if (!oidcLogos) { if (!oidcLogos?.config) {
return return
} }
oidcLogos.config = Object.keys(oidcLogos.config).reduce( oidcLogos.config = Object.keys(oidcLogos.config).reduce(