diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-03 16:47:37 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-03 16:47:37 +0700 |
| commit | ca30c28dd0b19977eb771fc32ff5e520cdef1068 (patch) | |
| tree | c5f192ea441d85a5a12f77649340f003683d599e /src/pages/shop/product | |
| parent | fa7c4c4645a90f23a59a84ea27e19dcde81ec159 (diff) | |
product varian
Diffstat (limited to 'src/pages/shop/product')
| -rw-r--r-- | src/pages/shop/product/variant/[slug].jsx | 7 |
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; } |
