Use the same label for both string and bag in tasks modal fuzzy match (#22022)

#22592 tracks properly doing fuzzy match within the full label

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-01-02 15:11:14 -07:00 committed by GitHub
parent 898064e6b4
commit f9df8c1729
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -555,11 +555,7 @@ fn string_match_candidates<'a>(
) -> Vec<StringMatchCandidate> {
candidates
.enumerate()
.map(|(index, (_, candidate))| StringMatchCandidate {
id: index,
char_bag: candidate.resolved_label.chars().collect(),
string: candidate.display_label().into(),
})
.map(|(index, (_, candidate))| StringMatchCandidate::new(index, candidate.display_label()))
.collect()
}