From 2dff6fa7f787306aaaa5546d453fab17e4cbe811 Mon Sep 17 00:00:00 2001 From: trisusilo48 Date: Thu, 29 Aug 2024 09:02:15 +0700 Subject: bug fixing google merchants --- src/pages/google_merchant/products/[page].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3