@websolutespa/bom-mixer-store 1.8.11 → 1.8.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-store
2
2
 
3
+ ## 1.8.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: menu category decorator
8
+
3
9
  ## 1.8.11
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -424,6 +424,9 @@ function decorateMenuCategory_(item, categories, routes, market, depth = 0) {
424
424
  const route = routes.find((route2) => route2.isDefault && route2.resolvedCategory === category.id);
425
425
  if (route) {
426
426
  decoratedItem.href = route.id;
427
+ if (!decoratedItem.media) {
428
+ decoratedItem.media = route.media;
429
+ }
427
430
  }
428
431
  }
429
432
  let maxDepth = item.maxDepth;
package/dist/index.mjs CHANGED
@@ -319,6 +319,9 @@ function decorateMenuCategory_(item, categories, routes, market, depth = 0) {
319
319
  const route = routes.find((route2) => route2.isDefault && route2.resolvedCategory === category.id);
320
320
  if (route) {
321
321
  decoratedItem.href = route.id;
322
+ if (!decoratedItem.media) {
323
+ decoratedItem.media = route.media;
324
+ }
322
325
  }
323
326
  }
324
327
  let maxDepth = item.maxDepth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-store",
3
- "version": "1.8.11",
3
+ "version": "1.8.12",
4
4
  "description": "Mixer Store module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -139,6 +139,9 @@ function decorateMenuCategory_(
139
139
  const route = routes.find((route: IRoute) => route.isDefault && route.resolvedCategory === category.id);
140
140
  if (route) {
141
141
  (decoratedItem as IMenuCategory).href = route.id;
142
+ if (!decoratedItem.media) {
143
+ decoratedItem.media = route.media;
144
+ }
142
145
  }
143
146
  }
144
147
  // checking for max depth recursion