Skip to content

Commit

Permalink
add radix parameter for parseInt function
Browse files Browse the repository at this point in the history
  • Loading branch information
MGJamJam committed May 9, 2024
1 parent 27e37b2 commit e9213a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function QueryEditor({ query, onChange, onRunQuery, datasource }: Props)
};

const onLimitChange = (event: ChangeEvent<HTMLInputElement>) => {
const limit = parseInt(event.target.value);
const limit = parseInt(event.target.value, 10);
onChange({ ...query, limit: isNaN(limit) ? undefined : limit });
onRunQuery();
};
Expand Down

0 comments on commit e9213a7

Please sign in to comment.