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>