@sumaris-net/ngx-components 2.4.122 → 2.4.124
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/esm2020/src/app/core/menu/menu.service.mjs +6 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +6 -0
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +5 -0
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/fr.json +6 -1
|
@@ -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) {
|