Fixes check for existing min/max value in axisConfig (#37119) (#37149)

This commit is contained in:
Catherine Liu 2019-05-27 10:11:07 -07:00 committed by GitHub
parent 0b9aeb58cd
commit db0f4d2e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,10 +49,10 @@ export const getFlotAxisConfig = (
position && acceptedPositions.includes(position) ? position : acceptedPositions[0];
if (axisType === 'number' || axisType === 'date') {
if (min) {
if (min !== null) {
config.min = min;
}
if (max) {
if (max !== null) {
config.max = max;
}
}