Skip to content

Commit

Permalink
feat(hawtio#125): Removed array creation: map handles it
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiraez authored Apr 5, 2023
1 parent 0b54d61 commit aa8325a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const AttributeTable: React.FunctionComponent = () => {
const labels = Object.keys(attributes[0])
const columns: TableProps['cells'] = labels.map(label => humanizeLabels(label))
const rows: TableProps['rows'] = attributes.map(attribute =>
[...labels].map(label => JSON.stringify(attribute[label])),
labels.map(label => JSON.stringify(attribute[label])),
)

return (
Expand Down

0 comments on commit aa8325a

Please sign in to comment.