Skip to content

Commit

Permalink
make logoWidth optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bpedersen2 committed Nov 17, 2023
1 parent 73576e5 commit 4f5599d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/app-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface AppConfig {
scicatBaseUrl: string;
showLogoBanner: boolean;
logoBanner: string | null;
logoWidth: string;
logoWidth?: string;
retrieveToEmail: RetrieveDestinations | undefined;
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4f5599d

Please sign in to comment.