diff --git a/software/web/src/modules/em_energy_analysis/main.tsx b/software/web/src/modules/em_energy_analysis/main.tsx index 52dcb25e6..6e7126e46 100644 --- a/software/web/src/modules/em_energy_analysis/main.tsx +++ b/software/web/src/modules/em_energy_analysis/main.tsx @@ -832,7 +832,7 @@ export class EMEnergyAnalysis extends Component= 0; --timestamp_slot) { + for (let timestamp_slot = energy_manager_data.price.length - 1; timestamp_slot >= 0; --timestamp_slot) { let timestamp = timestamp_base + timestamp_slot * 300; // seconds if (timestamp < first_date || timestamp >= last_date) {