Skip to content

Commit

Permalink
🐛 Static report app id needs to be a string. (#518)
Browse files Browse the repository at this point in the history
The static report JS needs the app ID to be a string.

Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel authored Oct 11, 2023
1 parent 3ba496f commit ae99514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@ func (r *ReportWriter) buildOutput(id uint) (path string, err error) {
r.encoder = &jsonEncoder{output: file}
r.write("window[\"apps\"]=[")
r.begin()
r.field("id").write(strconv.Itoa(int(m.Application.ID)))
r.field("id").writeStr(strconv.Itoa(int(m.Application.ID)))
r.field("name").writeStr(m.Application.Name)
r.field("analysis").writeStr(strconv.Itoa(int(m.ID)))
aWriter := AnalysisWriter{ctx: r.ctx}
Expand Down

0 comments on commit ae99514

Please sign in to comment.