@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 +6 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
- package/src/decorators/menu.ts +3 -0
package/CHANGELOG.md
CHANGED
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
package/src/decorators/menu.ts
CHANGED
|
@@ -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
|