Skip to content

Commit 823be04

Browse files
Fixed sample issue
1 parent 5f75661 commit 823be04

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

SQLiteWinUI/SQLiteWinUI/Viewmodel/SchedulerViewModel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ private void GenerateAppointments()
9797
}
9898
internal void DeleteSchedulerAppointment(ScheduleAppointment scheduleAppointment)
9999
{
100-
if (appointment == null)
101-
{
102-
appointment = scheduleAppointment;
103-
}
100+
appointment = scheduleAppointment;
104101

105102
//// Remove the appointments in the Scheduler.
106103
Appointments.Remove(this.appointment);

0 commit comments

Comments
 (0)