Skip to content

Commit

Permalink
closes gbif/portal-feedback#3334 and relates to tdwg/gbwg#62
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasstjerne committed May 3, 2021
1 parent 8619a31 commit ebb234a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/shared/layout/html/angular/occurrenceFilter.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ angular

$rootScope.$on('$stateChangeSuccess',
function(event, toState, toParams) {
refreshData(toParams);
if (toState.parent === 'occurrenceSearch') {
refreshData(toParams);
}
}
);

Expand Down Expand Up @@ -172,8 +174,10 @@ angular
}

function updateParam(key, values) {
state.query[key] = values;
refresh();
if (state.query[key] !== values) {
state.query[key] = values;
refresh();
}
}

function updateParams(params) {
Expand Down

0 comments on commit ebb234a

Please sign in to comment.