Align posted dashboard data to new data denormalized format

This commit is contained in:
Stephen Abello
2026-01-14 11:39:56 +01:00
parent d248524cc8
commit 0bc6f5d56a

View File

@@ -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;
}, {});
}
}