update search query to handle multiple labels
This commit is contained in:
@ -204,8 +204,9 @@ final class HomeFeedViewModel: ObservableObject {
|
||||
|
||||
var query = searchTerm
|
||||
|
||||
for label in selectedLabels {
|
||||
query.append(" label:\(label.name)")
|
||||
if !selectedLabels.isEmpty {
|
||||
query.append(" label:")
|
||||
query.append(selectedLabels.map(\.name).joined(separator: ","))
|
||||
}
|
||||
|
||||
return query
|
||||
|
||||
Reference in New Issue
Block a user