Skip to content

Commit

Permalink
Merge pull request #1957 from erri120/fix/diagnostic-list-filter
Browse files Browse the repository at this point in the history
Count on the source, not on the filtered list
  • Loading branch information
erri120 authored Aug 29, 2024
2 parents 5906083 + 82b7079 commit 7027e53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public DiagnosticListViewModel(
.BindToVM(this, vm => vm.DiagnosticEntries)
.DisposeWith(disposable);

var severityCountObservable = filteredDiagnostics
var severityCountObservable = this.WhenAnyValue(vm => vm.Diagnostics)
.Select(diagnostics => diagnostics
.Select(diagnostic => diagnostic.Severity)
.GroupBy(x => x)
Expand Down

0 comments on commit 7027e53

Please sign in to comment.