summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-08-29 09:02:15 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-08-29 09:02:15 +0700
commit2dff6fa7f787306aaaa5546d453fab17e4cbe811 (patch)
tree01307e30a7cbfbaf933fd7c33933f06d002ba1bd
parent3159d3a9772eb03231cb56730997b627a44d0a81 (diff)
bug fixing google merchants
-rw-r--r--src/pages/google_merchant/products/[page].js2
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;