Skip to content

Commit

Permalink
Fix for search page errors when a saved search has a blank descriptio…
Browse files Browse the repository at this point in the history
…n field (#11603)

* fix error from blank saved search descriptions, names, and urls.
  • Loading branch information
CWDamm-Kint authored Nov 7, 2024
1 parent 814aef7 commit 5f5f0d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arches/app/media/js/views/components/search/saved-searches.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f5f0d6

Please sign in to comment.