]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/UrlSubmitForm.svelte
replace eslint-plugin-svelte3 with eslint-plugin-svelte
[nominatim-ui.git] / src / components / UrlSubmitForm.svelte
index a3dfaa07d5bb4f8f82b27d36ccf5bad2cd7d1e5c..01f5a57dd6a182b141154e092273d097b1927e0b 100644 (file)
@@ -12,6 +12,9 @@
       if (['checkbox', 'radio'].indexOf(field.type) > -1 && !field.checked) return;
       if (typeof field.value === 'undefined' || field.value === '') return;
 
+      // Default value for /search endpoint
+      if (field.name === 'dedupe' && (field.value === 1 || field.value === '1')) return;
+
       params.set(field.name, field.value);
     });
 
   }
 </script>
 
-<form on:submit|preventDefault={handle_submit} class="form-inline" role="search" accept-charset="UTF-8" action="">
+<form on:submit|preventDefault={handle_submit}
+      class="form-inline"
+      role="search"
+      accept-charset="UTF-8"
+      action="">
   <div class="row g-2">
     <slot></slot>
   </div>