mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
fix(explore): fix y-axis lower bound 0 value (#15091)
This commit is contained in:
@@ -97,8 +97,8 @@ export default class BoundsControl extends React.Component {
|
||||
|
||||
onChange() {
|
||||
const mm = this.state.minMax;
|
||||
const min = parseFloat(mm[0]) || null;
|
||||
const max = parseFloat(mm[1]) || null;
|
||||
const min = Number.isNaN(parseFloat(mm[0])) ? null : parseFloat(mm[0]);
|
||||
const max = Number.isNaN(parseFloat(mm[1])) ? null : parseFloat(mm[1]);
|
||||
this.props.onChange([min, max]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user