There was an error while loading. Please reload this page.
1 parent 919025d commit 3802781Copy full SHA for 3802781
1 file changed
client/src/components/FoodSeeker/SearchResults/ResultsMap/ResultsMap.jsx
@@ -333,6 +333,11 @@ const ResultsMap = ({
333
function updateUrlParams(updates = {}) {
334
const params = new URLSearchParams(window.location.search);
335
336
+ // skip updating if the URL already has an "org" param
337
+ if (params.has("org")) {
338
+ return;
339
+ }
340
+
341
Object.entries(updates).forEach(([key, value]) => {
342
if (value === null || value === undefined || value === "") {
343
params.delete(key);
0 commit comments