fix: remove redundant assignments to \$derived variables before goto
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
853019075d
commit
ac28eb30d1
2 changed files with 0 additions and 2 deletions
|
|
@ -61,7 +61,6 @@
|
||||||
type="single"
|
type="single"
|
||||||
value={filterFlag}
|
value={filterFlag}
|
||||||
onValueChange={(v) => {
|
onValueChange={(v) => {
|
||||||
filterFlag = v;
|
|
||||||
goto(v ? `/health/lab-results?flag=${v}` : '/health/lab-results');
|
goto(v ? `/health/lab-results?flag=${v}` : '/health/lab-results');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@
|
||||||
let selectedCategory = $derived(data.category ?? '');
|
let selectedCategory = $derived(data.category ?? '');
|
||||||
|
|
||||||
function filterByCategory(cat: string) {
|
function filterByCategory(cat: string) {
|
||||||
selectedCategory = cat;
|
|
||||||
goto(cat ? `/products?category=${cat}` : '/products');
|
goto(cat ? `/products?category=${cat}` : '/products');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue