From 5f5f0d6484437f30574af2c4eaf04e8983e46e12 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 7 Nov 2024 18:49:35 +0000 Subject: [PATCH] Fix for search page errors when a saved search has a blank description field (#11603) * fix error from blank saved search descriptions, names, and urls. --- .../app/media/js/views/components/search/saved-searches.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arches/app/media/js/views/components/search/saved-searches.js b/arches/app/media/js/views/components/search/saved-searches.js index f25be9b3872..401e9a24388 100644 --- a/arches/app/media/js/views/components/search/saved-searches.js +++ b/arches/app/media/js/views/components/search/saved-searches.js @@ -24,9 +24,9 @@ define([ searchImageUrl = searchImageUrl.replace('//', '/'); self.items.push({ image: searchImageUrl, - title: search.SEARCH_NAME[arches.activeLanguage].value, - subtitle: search.SEARCH_DESCRIPTION[arches.activeLanguage].value, - searchUrl: search.SEARCH_URL[arches.activeLanguage].value + title: search.SEARCH_NAME ? search.SEARCH_NAME[arches.activeLanguage].value : "", + subtitle: search.SEARCH_DESCRIPTION ? search.SEARCH_DESCRIPTION[arches.activeLanguage].value : "", + searchUrl: search.SEARCH_URL ? search.SEARCH_URL[arches.activeLanguage].value: "" }); }); self.searchFilterVms[componentName](self);