diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-13 09:16:04 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-13 09:16:04 +0700 |
| commit | 26cee59f3abad5a9c45821ebdccc8ccb819c930b (patch) | |
| tree | 6d90eef71db8d1ab9b456b43aef36b5873d13998 /src/pages/shop/product | |
| parent | 6115a7b9e9e1cd2231c946609cb1ceac6d167386 (diff) | |
| parent | 80295b97150495f56bd236a5345c2ddeb8313267 (diff) | |
Merge branch 'CR/breadcrumb' into CR/UI
Diffstat (limited to 'src/pages/shop/product')
| -rw-r--r-- | src/pages/shop/product/[slug].jsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pages/shop/product/[slug].jsx b/src/pages/shop/product/[slug].jsx index 63fb2e7e..4c17ab37 100644 --- a/src/pages/shop/product/[slug].jsx +++ b/src/pages/shop/product/[slug].jsx @@ -29,12 +29,6 @@ export async function getServerSideProps(context) { // let productSolr = null 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 } @@ -45,6 +39,7 @@ export async function getServerSideProps(context) { } export default function ProductDetail({ product }) { + console.log(product); const router = useRouter() const { setProduct } = useProductContext() |
