diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-29 09:02:15 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-29 09:02:15 +0700 |
| commit | 2dff6fa7f787306aaaa5546d453fab17e4cbe811 (patch) | |
| tree | 01307e30a7cbfbaf933fd7c33933f06d002ba1bd /src | |
| parent | 3159d3a9772eb03231cb56730997b627a44d0a81 (diff) | |
bug fixing google merchants
Diffstat (limited to 'src')
| -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 80017f93..0c2cf3c5 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -58,7 +58,7 @@ export async function getServerSideProps({ res, query }) { } if (categoryId && categoryId in categoriesData) { - categoryName = categoriesData[categoryId].name_s ?? null; + categoryName = categoriesData[categoryId]?.name_s ?? null; } else { const solrCategory = await getCategoryById(categoryId); categoriesData[categoryId] = solrCategory; |
