From 0e83a6dc58383a4ed6f6957550897361e083745f Mon Sep 17 00:00:00 2001 From: David Gamez Diaz <1192523+davidgamez@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:35:22 -0500 Subject: [PATCH] add null protection for locations --- web-app/src/app/services/feeds/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = '';