fix: shipping product select fixed

This commit is contained in:
2025-03-03 11:00:32 +04:00
parent 9ef057f889
commit 5d19d254da

View File

@@ -14,9 +14,9 @@ const ShippingProductSelect: FC<Props> = (props: Props) => {
const data: ProductSchema[] = props.data.filter(product => { const data: ProductSchema[] = props.data.filter(product => {
return ( return (
product.name.toLowerCase().includes(searchValue) || product.name?.toLowerCase().includes(searchValue) ||
product.article?.toLowerCase().includes(searchValue) || product.article?.toLowerCase().includes(searchValue) ||
product.barcodes && product.barcodes[0].toLowerCase().includes(searchValue) product.barcodes && product.barcodes.length > 0 && product.barcodes[0].toLowerCase().includes(searchValue)
); );
}); });
return data; return data;