diff --git a/src/ViewModels/WorkingCopy.cs b/src/ViewModels/WorkingCopy.cs index 8b9ef9cf..fd3dc569 100644 --- a/src/ViewModels/WorkingCopy.cs +++ b/src/ViewModels/WorkingCopy.cs @@ -131,7 +131,7 @@ namespace SourceGit.ViewModels } else { - SelectedStaged = null; + SelectedStaged = []; if (value.Count == 1) SetDetail(value[0]); @@ -156,7 +156,7 @@ namespace SourceGit.ViewModels } else { - SelectedUnstaged = null; + SelectedUnstaged = []; if (value.Count == 1) SetDetail(value[0]);