Skip to content

Commit

Permalink
Properly using variadic frow PropVals
Browse files Browse the repository at this point in the history
  • Loading branch information
boggydigital committed Nov 12, 2024
1 parent 2859d7c commit 144fff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rest/compton_pages/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"golang.org/x/exp/maps"
"slices"
"strconv"
"strings"
)

const filterSearchTitle = "Filter & search"
Expand Down Expand Up @@ -59,7 +58,7 @@ func Search(query map[string][]string, ids []string, from, to int, rdx kevlar.Re
slices.Sort(props)
for _, prop := range props {
vals := fq[prop]
queryFrow.PropVal(compton_data.PropertyTitles[prop], strings.Join(vals, ","))
queryFrow.PropVal(compton_data.PropertyTitles[prop], vals...)
}
queryFrow.LinkColor("Clear", "/search", color.Blue)
}
Expand Down

0 comments on commit 144fff4

Please sign in to comment.