@pronto-tools-and-more/custom-js-functions 14.30.0 → 14.32.0

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/main.js CHANGED
@@ -512,7 +512,7 @@
512
512
  }
513
513
  let current = primaryCategory;
514
514
  for (const key of keys) {
515
- current = primaryCategory[key] || "n/a";
515
+ current = current[key] || "n/a";
516
516
  }
517
517
  return current;
518
518
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/custom-js-functions",
3
- "version": "14.30.0",
3
+ "version": "14.32.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@ export const getPrimaryCategoryProperty = (content, ...keys) => {
24
24
  }
25
25
  let current = primaryCategory;
26
26
  for (const key of keys) {
27
- current = primaryCategory[key] || "n/a";
27
+ current = current[key] || "n/a";
28
28
  }
29
29
  return current;
30
30
  } catch (error) {