Skip to content

Commit

Permalink
check if geocoderVlaues have been set for that queryKey
Browse files Browse the repository at this point in the history
  • Loading branch information
stephherbers committed Nov 29, 2023
1 parent b09c8d3 commit 44fadc5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", function () {
$(function () {
kissmetrics.track.event("Accessibility Tracking - Geocoder Seen in Case Search");
});
if (!sessionStorage.geocoderValues) {
sessionStorage.geocoderValues = JSON.stringify({});
let queryKey = sessionStorage.queryKey;
if (!sessionStorage.geocoderValues || !sessionStorage.geocoderValues.queryKey) {
sessionStorage.geocoderValues = JSON.stringify({ "queryKey": queryKey });
}
if ($field.find('.mapboxgl-ctrl-geocoder--input').length === 0) {
if (!initialPageData.get("has_geocoder_privs")) {
Expand Down

0 comments on commit 44fadc5

Please sign in to comment.