Skip to content

Commit

Permalink
Search tab map is blank on first page load. Fixes #7961 (#8026)
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed May 14, 2024
1 parent 523f4fc commit c8bc70f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web-ui/src/main/resources/catalog/views/default/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,17 @@
setActiveTab();
$scope.$on("$locationChangeSuccess", setActiveTab);

$scope.$on("$locationChangeSuccess", function (next, current) {
if (
gnSearchLocation.isSearch() &&
(!angular.isArray(searchMap.getSize()) || searchMap.getSize()[0] < 0)
) {
setTimeout(function () {
searchMap.updateSize();
}, 0);
}
});

var sortConfig = gnSearchSettings.sortBy.split("#");
angular.extend($scope.searchObj, {
advancedMode: false,
Expand Down

0 comments on commit c8bc70f

Please sign in to comment.