more lint
This commit is contained in:
@@ -159,9 +159,9 @@ const History = () => {
|
|||||||
// Property filter
|
// Property filter
|
||||||
if (propertyFilter !== 'all' && app.propertyName !== propertyFilter) return false;
|
if (propertyFilter !== 'all' && app.propertyName !== propertyFilter) return false;
|
||||||
|
|
||||||
// Product filter
|
// Product filter - multi-select
|
||||||
if (productFilter !== 'all') {
|
if (selectedProducts.length > 0) {
|
||||||
if (!app.products || !app.products.some(p => p.productName === productFilter)) return false;
|
if (!app.products || !app.products.some(p => selectedProducts.includes(p.productName))) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user