Prevents crash when sending emails (#2264)
* Quick fixes to core libs * Prevents crash when sending emailspull/2258/head^2
parent
f7a2e1e7ac
commit
767d1fb186
|
@ -104,7 +104,7 @@ export function getLocationTypes(): string[] {
|
|||
}
|
||||
|
||||
export function getAppName(name: string) {
|
||||
return ALL_APPS_MAP[name as keyof typeof ALL_APPS_MAP].name;
|
||||
return ALL_APPS_MAP[name as keyof typeof ALL_APPS_MAP]?.name || "No App Name";
|
||||
}
|
||||
|
||||
export function getAppType(name: string): string {
|
||||
|
|
Loading…
Reference in New Issue