X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/126b4600d8373b7291f73a18f069aa004c60b498..cf3e8f8daa0f2f4b014b9df6c32a436248237140:/src/components/UrlSubmitForm.svelte diff --git a/src/components/UrlSubmitForm.svelte b/src/components/UrlSubmitForm.svelte index 2207361..01f5a57 100644 --- a/src/components/UrlSubmitForm.svelte +++ b/src/components/UrlSubmitForm.svelte @@ -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); }); @@ -45,6 +48,12 @@ } -