feat: fix context null after syncing.
This commit is contained in:
@@ -36,6 +36,11 @@ public sealed class CalendarContext(int? year = null, int? month = null, int? st
|
||||
{
|
||||
month++;
|
||||
}
|
||||
|
||||
if (month is null)
|
||||
{
|
||||
month = 1;
|
||||
}
|
||||
return new CalendarContext(year, month, StartYear, EndYear);
|
||||
}
|
||||
|
||||
@@ -52,6 +57,10 @@ public sealed class CalendarContext(int? year = null, int? month = null, int? st
|
||||
{
|
||||
month--;
|
||||
}
|
||||
if (month is null)
|
||||
{
|
||||
month = 1;
|
||||
}
|
||||
return new CalendarContext(year, month, StartYear, EndYear);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user