Merge branch 'main' into codex/update-pick-list-packaging-filter-logic-lvix0v

This commit is contained in:
beatz174-bit authored and GitHub committed 2025-11-23 16:27:29 +10:00
commit 90a7fb3f9d
2 files changed
+45 -10

No files matched your search

+3 -3
View File
@@ -116,13 +116,13 @@ export const ActivePickListScreen = () => {
const filteredProducts = useMemo(() => {
const normalizedQuery = query.trim().toLowerCase();
if (!normalizedQuery) return sortedProducts;
if (!normalizedQuery) return categoryFilteredProducts;
return sortedProducts.filter((product) => {
return categoryFilteredProducts.filter((product) => {
const searchableText = `${product.name} ${product.category} ${product.barcode ?? ''}`.toLowerCase();
return searchableText.includes(normalizedQuery);
});
}, [sortedProducts, query]);
}, [categoryFilteredProducts, query]);
useEffect(() => {
if (!selectedProduct) return;