Fix compilation error by making EditMonth and EditYear instance variables

Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-18 17:33:27 +00:00
parent 983bac41b2
commit f66f4c4c9b

View file

@ -15,10 +15,12 @@ namespace ShiftScheduler.Client.Pages
private List<DateTime> DaysInMonth { get; set; } = new();
private List<Shift> Shifts { get; set; } = new();
private Dictionary<DateTime, string> SelectedSchedule { get; set; } = new();
private int EditMonth { get; set; }
private int EditYear { get; set; }
protected override async Task OnInitializedAsync()
{
var (EditMonth, EditYear) = GetNextMonthAndYear();
(EditMonth, EditYear) = GetNextMonthAndYear();
DaysInMonth = Enumerable.Range(1, DateTime.DaysInMonth(EditYear, EditMonth))
.Select(d => new DateTime(EditYear, EditMonth, d))