@sumaris-net/ngx-components 2.4.123 → 2.4.125

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.
@@ -22878,7 +22878,7 @@ class MenuService extends StartableObservableService {
22878
22878
  // TODO Restore old excluded items
22879
22879
  // this.addSubMenuItems();
22880
22880
  }));
22881
- return this._staticItems;
22881
+ return undefined; // not yet loaded
22882
22882
  }
22883
22883
  async loadMenuItems(config, account) {
22884
22884
  if (this._debug)
@@ -22899,6 +22899,11 @@ class MenuService extends StartableObservableService {
22899
22899
  // Skip is already loaded
22900
22900
  if (res.find((i) => MenuItems.isSame(i, item)))
22901
22901
  return res;
22902
+ // Reuse existing id, if possible
22903
+ const existingItem = this.data?.find((i) => MenuItems.isSame(i, item));
22904
+ if (existingItem) {
22905
+ item.id = existingItem.id;
22906
+ }
22902
22907
  if (item.after) {
22903
22908
  const index = res.findIndex(i => i.title === item.after);
22904
22909
  if (index !== -1) {