mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:45:24 +02:00
fix: resolve DataGrid search and filtering issues by consolidating search logic in filterData and fixing aggregation-aware filtering
This commit is contained in:
@@ -1232,8 +1232,16 @@ export const filterData = (
|
||||
if (searchTerms.length > 0) {
|
||||
const itemAsin = (item.asin || '').toUpperCase();
|
||||
const itemSku = (item.sku || '').toUpperCase();
|
||||
const itemTitle = (item.title || '').toUpperCase();
|
||||
const itemLine = (item.line || '').toUpperCase();
|
||||
const itemCustomer = (item.customer || '').toUpperCase();
|
||||
|
||||
bulkMatch = searchTerms.some(term =>
|
||||
itemAsin.includes(term) || itemSku.includes(term)
|
||||
itemAsin.includes(term) ||
|
||||
itemSku.includes(term) ||
|
||||
itemTitle.includes(term) ||
|
||||
itemLine.includes(term) ||
|
||||
itemCustomer.includes(term)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user