Skip to content

Commit

Permalink
HCK-7070: fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii-filonenko committed Jul 11, 2024
1 parent 812b487 commit 4535f36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const reorderTableRows = (tableRows, isFieldOrderAlphabetic) => {
return tableRows;
}

const reorderedFieldNames = Object.keys(tableRows[0]).sort((a, b) => a?.localeCompare(b));
const reorderedFieldNames = Object.keys(tableRows[0]).sort((a, b) => a?.localeCompare?.(b));
return tableRows.map(row =>
Object.values(row).reduce(
(columns, columnValue, i) => ({
Expand Down

0 comments on commit 4535f36

Please sign in to comment.