Skip to content

Commit

Permalink
fix custom field duplicate output (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir authored Oct 28, 2024
1 parent 99269cd commit 9495585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/output/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func formatField(output *Result, fields string) []fieldOutput {
}
}
default:
for k, v := range output.Request.CustomFields {
if v, ok := output.Request.CustomFields[f]; ok {
for _, r := range v {
svalue = append(svalue, fieldOutput{field: k, value: r})
svalue = append(svalue, fieldOutput{field: f, value: r})
}
}
}
Expand Down

0 comments on commit 9495585

Please sign in to comment.