@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.
- package/dist/index.js +3 -1
- 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(
|
|
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