Skip to content

Commit 77b7811

Browse files
authored
fix: add null protection for locations (#800)
1 parent e613ad7 commit 77b7811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-app/src/app/services/feeds/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export type AllDatasetType =
5050
| undefined;
5151

5252
export function getLocationName(
53-
locations: EntityLocations | undefined,
53+
locations: EntityLocations | undefined | null,
5454
): string {
55-
if (locations === undefined) {
55+
if (locations === undefined || locations === null) {
5656
return '';
5757
}
5858
let displayLocation = '';

0 commit comments

Comments
 (0)