summaryrefslogtreecommitdiff
path: root/src/pages/shop/product
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-13 16:11:09 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-13 16:11:09 +0700
commitc873a401f0ea13e1881278e7977d4013d3a87394 (patch)
tree5474f90a5e2530f3d3fae38a0a9876fd20bd2c00 /src/pages/shop/product
parentb9e64c111f21ac32466fa2a0f095df83ff111252 (diff)
parent66e990de0a552cbc63e2db0e9e93c84520a806f2 (diff)
Merge branch 'new-release' into Feature/pengajuan-tempo
Diffstat (limited to 'src/pages/shop/product')
-rw-r--r--src/pages/shop/product/variant/[slug].jsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/pages/shop/product/variant/[slug].jsx b/src/pages/shop/product/variant/[slug].jsx
index 42f38774..2c0dd64b 100644
--- a/src/pages/shop/product/variant/[slug].jsx
+++ b/src/pages/shop/product/variant/[slug].jsx
@@ -32,16 +32,9 @@ export async function getServerSideProps(context) {
tier
);
let product = response.data;
- // let product = await variantApi({ id: getIdFromSlug(slug), headers: { Token: authToken } })
if (product?.length == 1) {
product = product[0];
- /* const regexHtmlTags = /(<([^>]+)>)/gi
- const regexHtmlTagsExceptP = /<\/?(?!p\b)[^>]*>/g
- product.description = product.description
- .replace(regexHtmlTagsExceptP, ' ')
- .replace(regexHtmlTags, ' ')
- .trim()*/
} else {
product = null;
}