update collapse menu
This commit is contained in:
@@ -129,8 +129,11 @@
|
||||
$: monthlyData = (() => {
|
||||
const months = [];
|
||||
|
||||
// Show all 12 months for the selected year
|
||||
for (let i = 11; i >= 0; i--) {
|
||||
// Determine max month to show (don't show future months)
|
||||
const maxMonth = selectedYear === currentYear ? currentMonth : 11;
|
||||
|
||||
// Show months from maxMonth down to January
|
||||
for (let i = maxMonth; i >= 0; i--) {
|
||||
const data = getMonthData(i);
|
||||
const monthData = {
|
||||
month: i,
|
||||
|
||||
Reference in New Issue
Block a user