Skip to content

Commit

Permalink
fix(ux): 🐛 fix broken fuzzy filter on detailed `tgl reports [span] pr…
Browse files Browse the repository at this point in the history
…ojects` (#78)
  • Loading branch information
JamesNZL committed Jun 24, 2023
1 parent 8909d97 commit 9bfdb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TogglTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2323,9 +2323,9 @@ internal async ValueTask<List<Result>> RequestViewReports(CancellationToken toke
{
var filteredTimeEntries = (string.IsNullOrEmpty(subNameQuery))
? timeEntryGroup.TimeEntries
: timeEntryGroup.TimeEntries.Where(timeEntry => this._context.API.FuzzySearch(subNameQuery, timeEntry.GetDescription()).Score > 0);
: timeEntryGroup.TimeEntries.FindAll(timeEntry => this._context.API.FuzzySearch(subNameQuery, timeEntry.GetDescription()).Score > 0);
return timeEntryGroup.TimeEntries.ConvertAll(timeEntry =>
return filteredTimeEntries.ConvertAll(timeEntry =>
{
DateTimeOffset startDate = timeEntry.StartDate.ToLocalTime();
Expand Down

0 comments on commit 9bfdb37

Please sign in to comment.