mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Align posted dashboard data to new data denormalized format
This commit is contained in:
@@ -145,12 +145,11 @@ class IboGrid extends HTMLElement {
|
||||
}
|
||||
Serialize() {
|
||||
const aSlots = this.getSlots();
|
||||
return aSlots.map(oSlot => {
|
||||
const sDashletId = oSlot.oDashlet.sDashletId;
|
||||
return {
|
||||
[sDashletId]: oSlot.Serialize(),
|
||||
};
|
||||
});
|
||||
|
||||
return aSlots.reduce((aAccumulator, oSlot) => {
|
||||
aAccumulator[oSlot.oDashlet.sDashletId] = oSlot.Serialize();
|
||||
return aAccumulator;
|
||||
}, {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user