Skip to content

Commit

Permalink
fixes number of result on meet tab filters
Browse files Browse the repository at this point in the history
  • Loading branch information
matax87 committed Nov 7, 2024
1 parent 4edbb83 commit e0a316e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NOICommunity/MeetFeature/View Models/PeopleViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class PeopleViewModel {
[Initial],
[Initial: [PersonId]]
)!

@Published private(set) var activeSearchTerm: String?

@Published private(set) var activeCompanyIdsFilter: Set<CompanyId>? {
Expand Down Expand Up @@ -186,6 +186,7 @@ final class PeopleViewModel {
.mapValues { $0.map(\.id) }

let initials = Array(Set(peopleIdsByInitial.keys)).sorted()
self.numberOfResults = filteredSortedPeople.count
self.results = (initials, peopleIdsByInitial)
}

Expand Down

0 comments on commit e0a316e

Please sign in to comment.