Skip to content

Commit

Permalink
fix: Added validation to chartwrapper (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: schakrad <[email protected]>
  • Loading branch information
schakrad authored Sep 1, 2023
1 parent 2f38008 commit 14f9dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ChartWrapper = ({
({
data,
groupBy,
yFormatter = (y: any): number => y * 1,
yFormatter = (y: any): number => { return (isNaN(y) ? 0 : (y * 1)) },
xFormatter = (x: any): number => Math.floor(x * 1),
}: {
data: CustomPrometheusResponse & CustomWavefrontResponse;
Expand Down

0 comments on commit 14f9dcb

Please sign in to comment.