Skip to content

Commit

Permalink
fix: crash when all datapoints are identical
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Nov 27, 2024
1 parent 9117074 commit b0aa844
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const useGraphOptions = ({
},
y: {
range: (u, min, max) => {
return [u.data[0].length > 1 ? min : 0, max]
return [u.data[0].length > 1 && min !== max ? min : 0, max]
},
},
}
Expand Down

0 comments on commit b0aa844

Please sign in to comment.