diff --git a/web-app/src/app/services/feeds/utils.ts b/web-app/src/app/services/feeds/utils.ts index 383086dc9..5643dd5f1 100644 --- a/web-app/src/app/services/feeds/utils.ts +++ b/web-app/src/app/services/feeds/utils.ts @@ -50,9 +50,9 @@ export type AllDatasetType = | undefined; export function getLocationName( - locations: EntityLocations | undefined, + locations: EntityLocations | undefined | null, ): string { - if (locations === undefined) { + if (locations === undefined || locations === null) { return ''; } let displayLocation = '';