diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-07 14:51:12 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-07 14:51:12 +0700 |
| commit | 7892008931b6c2e4c0f220212aa51b489d79dc86 (patch) | |
| tree | fe0f29853979510cc8c5b4b7259aaad75b223b5e /src/utils | |
| parent | 1385ec82fac3e3159b93d4f11161b6e8086eb3f3 (diff) | |
add information product in page variant detail
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/solrMapping.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/solrMapping.js b/src/utils/solrMapping.js index 7e887253..8877d19f 100644 --- a/src/utils/solrMapping.js +++ b/src/utils/solrMapping.js @@ -98,9 +98,10 @@ export const variantsMappingSolr = (parent, products, pricelist) => { }; } productMapped.parent = { - id: parent.product_id_i || '', - image: parent.image_s || '', - name: parent.name_s || '', + id: parent[0].product_id_i || '', + image: parent[0].image_s || '', + name: parent[0].name_s || '', + description: parent[0].description_t || '', }; return productMapped; }); |
