diff --git a/arches/app/media/js/views/components/search/search-results.js b/arches/app/media/js/views/components/search/search-results.js index 63ade66d104..e68bea90cc8 100644 --- a/arches/app/media/js/views/components/search/search-results.js +++ b/arches/app/media/js/views/components/search/search-results.js @@ -56,18 +56,21 @@ define([ this.restoreState(); this.mapFilter = this.getFilterByType("map-filter-type", false); - this.mapFilter.subscribe(mapFilter => { - if (mapFilter) { - this.mapFilter = mapFilter; - } - }, this); - this.selectedTab.subscribe(function (tab) { - if (tab === "map-filter-type") { - if (ko.unwrap(this.mapFilter.map)) { - this.mapFilter.map().resize(); + //Check if exist the map filter + if (this.mapFilter !== null){ + this.mapFilter.subscribe(mapFilter => { + if (mapFilter) { + this.mapFilter = mapFilter; } - } - }, this); + }, this); + this.selectedTab.subscribe(function (tab) { + if (tab === "map-filter-type") { + if (ko.unwrap(this.mapFilter.map)) { + this.mapFilter.map().resize(); + } + } + }, this); + } this.bulkResourceReportCache = ko.observable({}); this.bulkDisambiguatedResourceInstanceCache = ko.observable({}); diff --git a/releases/7.6.8.md b/releases/7.6.8.md index f65c10b2ce1..ecc283063b8 100644 --- a/releases/7.6.8.md +++ b/releases/7.6.8.md @@ -6,6 +6,7 @@ - Fix severe performance issue in related resource view [#11885](https://github.com/archesproject/arches/issues/11885) - Fix sorting concepts with special floats [#11790](https://github.com/archesproject/arches/pull/11790) - Accept `datetime.date` objects in date datatype [#11895](https://github.com/archesproject/arches/issues/11895) +- Fixed error in search results when map filter is not present [#11917](https://github.com/archesproject/arches/pull/11917) ### Dependency changes: