@nuskin/cs-product-lib 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helpers.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/cs-product-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Library for pulling and parsing product content (and applying business logic) retrieved from Contentstack",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/helpers.js CHANGED
@@ -500,7 +500,7 @@ function mapProductDetails(productOrVariant) {
500
500
  }
501
501
  let description = productDetails.long_description
502
502
  if (!Array.isArray(description)) {
503
- if (description?.uid) {
503
+ if (description?.uid && !(description?.children && description?.type)) {
504
504
  description = null
505
505
  } else {
506
506
  description = createMarkdown(