Skip to content

Commit

Permalink
fix: convert hash to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
krosy1337 committed Oct 23, 2023
1 parent 6d09126 commit 60b7b79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ const oneLineQueryTextColumn: Column<KeyValueRow> = {

const queryHashColumn: Column<KeyValueRow> = {
name: TOP_QUERIES_COLUMNS_IDS.QueryHash,
render: ({row}) => String(crc32.str(String(row.QueryText))),
// We use unsigned right shift operator (>>>) to avoid negative values
// eslint-disable-next-line no-bitwise
render: ({row}) => (crc32.str(String(row.QueryText)) >>> 0).toString(16).toUpperCase(),
width: 130,
sortable: false,
};
Expand Down

0 comments on commit 60b7b79

Please sign in to comment.