From ded73415f08563fcd509968666541d4233eaeba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pedersen?= Date: Thu, 16 Nov 2023 09:54:35 +0100 Subject: [PATCH] make logoWidth optional --- src/app/app-config.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/app-config.service.ts b/src/app/app-config.service.ts index d4b7e171..6397ff25 100644 --- a/src/app/app-config.service.ts +++ b/src/app/app-config.service.ts @@ -17,7 +17,7 @@ export interface AppConfig { scicatBaseUrl: string; showLogoBanner: boolean; logoBanner: string | null; - logoWidth: string; + logoWidth?: string; retrieveToEmail: RetrieveDestinations | undefined; } @@ -51,7 +51,8 @@ export class AppConfigService { } // Use old default if not provided - (this.appConfig as AppConfig).logoWidth = (this.appConfig as AppConfig).logoWidth ?? "412"; + (this.appConfig as AppConfig).logoWidth = + (this.appConfig as AppConfig)?.logoWidth ?? "412"; } getConfig(): AppConfig {