fix: Parse Saleor JSON description format to plain text
- Add parseDescription() helper to extract text from EditorJS JSON - Update getLocalizedProduct to use parsed description - Fix product descriptions showing raw JSON on frontend
This commit is contained in:
@@ -32,4 +32,5 @@ export {
|
||||
isProductAvailable,
|
||||
formatPrice,
|
||||
getLocalizedProduct,
|
||||
parseDescription,
|
||||
} from "./products";
|
||||
|
||||
Reference in New Issue
Block a user