u
This commit is contained in:
@@ -836,8 +836,11 @@ class ArticleHistoryTab extends PureComponent {
|
|||||||
|
|
||||||
handleOpenBrand(brandName) {
|
handleOpenBrand(brandName) {
|
||||||
if (!brandName) return;
|
if (!brandName) return;
|
||||||
brandAutomat.actions.filter(brandName);
|
const match = (brandAutomat.state.brands || []).find(
|
||||||
this.props.navigate('/artikel/marken');
|
(b) => b && (b.name?.toLowerCase() === brandName.toLowerCase() || String(b.id) === String(brandName)),
|
||||||
|
);
|
||||||
|
const brandParam = match?.id != null ? String(match.id) : brandName;
|
||||||
|
this.props.navigate(`/artikel?brand=${encodeURIComponent(brandParam)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user