Skip to content

Commit

Permalink
Merge pull request #14 from slintes/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
slintes committed Aug 5, 2024
2 parents 852ad93 + b20bc1a commit bd267e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findIndexImage/frontend/wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (p *Page) getVersion() {
p.msgDiv.SetInnerHTML(msg)
return
}
p.versionDiv.SetInnerHTML(string(body))
p.versionDiv.SetInnerHTML(fmt.Sprintf("Version v%s", string(body)))
}

func (p *Page) getData(reload bool) {
Expand Down Expand Up @@ -134,7 +134,7 @@ func (p *Page) fillTable(results []api.Result) {
}
tableHead := "<tr>"
tableOptions := make([]any, 0)
for _, header := range []string{"OCP version", "Operator", "Release", "Index Image", "Created at"} {
for _, header := range headers {
tableHead += fmt.Sprintf("<th>%v</th>\n", header)
tableOptions = append(tableOptions, trimHeader(header))
}
Expand Down

0 comments on commit bd267e6

Please sign in to comment.