@streamoid/catalogix-chat 0.2.12 → 0.2.13

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/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2459,7 +2459,9 @@ async function fetchLovValues(storeId, marketplace, feedCol, smpAttr) {
2459
2459
  const res = await fetchJson(
2460
2460
  `${catalogixBaseUrl}/api/v1/store/${storeId}/product/${marketplace}/metavalue/unique_attributes/get?${params}`
2461
2461
  );
2462
- return (res.data?.ontology_values ?? []).map((v) => v.value);
2462
+ return (res.data?.ontology_values ?? []).map(
2463
+ (v) => typeof v === "string" ? v : v.value
2464
+ );
2463
2465
  }
2464
2466
  function getAllAttributes(mpAttributes) {
2465
2467
  return Object.values(mpAttributes).flat();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/catalogix-chat",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Catalogix chat components for the Streamoid chat host — store creation, product selection, automations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",