multicloud_rule_manager 1.1.81 → 1.1.82
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.
|
@@ -101,6 +101,10 @@ export default {
|
|
|
101
101
|
"products_structure"
|
|
102
102
|
);
|
|
103
103
|
|
|
104
|
+
const productStructureRootId = products.find(
|
|
105
|
+
(p) => p.product_id === rootGuid
|
|
106
|
+
);
|
|
107
|
+
|
|
104
108
|
console.log(`🌳 Totale elementi structure: ${structure.length}`);
|
|
105
109
|
|
|
106
110
|
// =========================
|
|
@@ -111,11 +115,13 @@ export default {
|
|
|
111
115
|
(a.name || "").localeCompare(b.name || "")
|
|
112
116
|
);
|
|
113
117
|
|
|
118
|
+
|
|
119
|
+
|
|
114
120
|
const getCategories = () =>
|
|
115
121
|
sortByName(
|
|
116
122
|
structure.filter(
|
|
117
123
|
(e) =>
|
|
118
|
-
e.parent_guid ===
|
|
124
|
+
e.parent_guid === productStructureRootId &&
|
|
119
125
|
e.type === "category"
|
|
120
126
|
)
|
|
121
127
|
);
|