Skip to content

Commit

Permalink
Fixed NaN comparison (elastic#50000)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroprado010 authored and timductive committed Dec 16, 2019
1 parent d0a31ea commit 5ee3696
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ColorRulesUI extends Component {
const part = {};
part[name] = cast(_.get(e, '[0].value', _.get(e, 'target.value')));
if (part[name] === 'undefined') part[name] = undefined;
if (part[name] === NaN) part[name] = undefined;
if (isNaN(part[name])) part[name] = undefined;
handleChange(_.assign({}, item, part));
};
}
Expand Down

0 comments on commit 5ee3696

Please sign in to comment.