single filter
This commit is contained in:
@@ -268,9 +268,7 @@ class ArtikelUebersichtPage extends Component {
|
|||||||
selected={selected}
|
selected={selected}
|
||||||
onMouseDown={(e) => e.preventDefault()}
|
onMouseDown={(e) => e.preventDefault()}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const next = selected
|
const next = selected ? [] : [id];
|
||||||
? categories.filter((c) => c !== id)
|
|
||||||
: [...categories, id];
|
|
||||||
this.updateParams(input, buildFilter(next), 0);
|
this.updateParams(input, buildFilter(next), 0);
|
||||||
}}
|
}}
|
||||||
sx={{ pl: 2 + depth * 1.5 }}
|
sx={{ pl: 2 + depth * 1.5 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user