@ibiz-template/model-helper 0.7.41-alpha.101 → 0.7.41-alpha.102
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.esm.js
CHANGED
|
@@ -18258,10 +18258,12 @@ function mergeMenuItem(mainItem, subItem, isReverse = false) {
|
|
|
18258
18258
|
if ((_b = subItem.appMenuItems) == null ? void 0 : _b.length) {
|
|
18259
18259
|
mainItem.appMenuItems = subItem.appMenuItems;
|
|
18260
18260
|
} else {
|
|
18261
|
-
Object.keys(mainItem).forEach(
|
|
18262
|
-
|
|
18263
|
-
|
|
18264
|
-
|
|
18261
|
+
Object.keys(mainItem).forEach((key) => {
|
|
18262
|
+
if (key === "accessKey" && !subItem[key]) {
|
|
18263
|
+
return;
|
|
18264
|
+
}
|
|
18265
|
+
delete mainItem[key];
|
|
18266
|
+
});
|
|
18265
18267
|
Object.assign(mainItem, subItem);
|
|
18266
18268
|
}
|
|
18267
18269
|
} else {
|