diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-08 13:27:25 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-08 13:27:25 +0700 |
| commit | e7faa6bb5dc33f576cb53cd1f4716bf2c6b03571 (patch) | |
| tree | d8b3864302c6a570a225c0b9fb5e14fc50500319 | |
| parent | 3a93af1298a725f4f399659be88bac15b8a7ca82 (diff) | |
(andri) hide brand in specs
| -rw-r--r-- | src-migrate/modules/product-detail/components/ProductDetail.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index 2652106c..a98cb0a4 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -169,8 +169,13 @@ const ProductDetail = ({ product }: Props) => { // 1. Specs Matrix (Processed Grouping) if (data.specsMatrix && Array.isArray(data.specsMatrix)) { - const processed = processMatrixData(data.specsMatrix); - setSpecsMatrix(processed); + const filteredMatrix = data.specsMatrix.filter((item: any) => { + const code = item.code || ''; + return !code.includes('z_brand'); + }); + + const processed = processMatrixData(filteredMatrix); + setSpecsMatrix(processed); } else { setSpecsMatrix([]); } |
