fix: month order - Apr first at top, then subsequent months
This commit is contained in:
parent
96ddb2fa60
commit
27866e86f0
1 changed files with 2 additions and 2 deletions
|
|
@ -657,9 +657,9 @@ function HourlyGenerationSheet({ hourly, codYear }: { hourly: HourlyData; codYea
|
||||||
{hasWind && <span className="text-blue-700 w-24">{Math.round(windYr).toLocaleString()} MWh</span>}
|
{hasWind && <span className="text-blue-700 w-24">{Math.round(windYr).toLocaleString()} MWh</span>}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Month rows - reverse order (Apr first for Indian FY) */}
|
{/* Month rows - forward order (Apr first, then subsequent months) */}
|
||||||
{isYearExpanded && [...Array(12)].map((_, mi) => {
|
{isYearExpanded && [...Array(12)].map((_, mi) => {
|
||||||
const pos = 11 - mi; // Reverse: 11->0 gives Apr first
|
const pos = mi; // Forward: 0=Apr, 1=May, etc.
|
||||||
const month = monthPositions[pos];
|
const month = monthPositions[pos];
|
||||||
const monthKey = `${year}-${month}`;
|
const monthKey = `${year}-${month}`;
|
||||||
const isMonthExpanded = expandedMonths.has(monthKey);
|
const isMonthExpanded = expandedMonths.has(monthKey);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue