diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-28 15:47:59 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-28 15:47:59 +0700 |
| commit | 3159d3a9772eb03231cb56730997b627a44d0a81 (patch) | |
| tree | 63e8e647e21363df6b4a266872692b862a9195e4 /src/pages | |
| parent | 2db2e3c400264da09e9133080b96193cbe7d4983 (diff) | |
fixing error goole merhanct
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/google_merchant/products/[page].js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/google_merchant/products/[page].js b/src/pages/google_merchant/products/[page].js index 6e0eb703..80017f93 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -50,7 +50,7 @@ export async function getServerSideProps({ res, query }) { let categoryId = null; if (brandId && brandId in brandsData) { - categoryId = brandsData[brandId].category_ids?.[0] ?? null; + categoryId = brandsData[brandId]?.category_ids?.[0] ?? null; } else { const solrBrand = await getBrandById(brandId); brandsData[brandId] = solrBrand; |
