Skip to content

Commit

Permalink
fix: add null protection for locations (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamez authored Nov 6, 2024
1 parent e613ad7 commit 77b7811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-app/src/app/services/feeds/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 77b7811

Please sign in to comment.