Skip to content

Commit 3802781

Browse files
committed
skip location url update for orgs
1 parent 919025d commit 3802781

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • client/src/components/FoodSeeker/SearchResults/ResultsMap

client/src/components/FoodSeeker/SearchResults/ResultsMap/ResultsMap.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@ const ResultsMap = ({
333333
function updateUrlParams(updates = {}) {
334334
const params = new URLSearchParams(window.location.search);
335335

336+
// skip updating if the URL already has an "org" param
337+
if (params.has("org")) {
338+
return;
339+
}
340+
336341
Object.entries(updates).forEach(([key, value]) => {
337342
if (value === null || value === undefined || value === "") {
338343
params.delete(key);

0 commit comments

Comments
 (0)