single filter

This commit is contained in:
seb
2026-07-19 17:32:20 +02:00
parent 831456f36c
commit f012f27bf9

View File

@@ -268,9 +268,7 @@ class ArtikelUebersichtPage extends Component {
selected={selected}
onMouseDown={(e) => e.preventDefault()}
onClick={() => {
const next = selected
? categories.filter((c) => c !== id)
: [...categories, id];
const next = selected ? [] : [id];
this.updateParams(input, buildFilter(next), 0);
}}
sx={{ pl: 2 + depth * 1.5 }}