[Rollups] Fix rollup job wizard bug: coerce histogram interval to Number for validation. (#27413) (#27460)

This commit is contained in:
CJ Cenizal 2018-12-18 16:34:16 -08:00 committed by GitHub
parent 2a67310cb9
commit ff0089c083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ export function validateHistogramInterval(histogram, histogramInterval) {
)];
}
if (Math.round(histogramInterval) !== histogramInterval) {
if (Math.round(histogramInterval) !== Number(histogramInterval)) {
return [(
<FormattedMessage
id="xpack.rollupJobs.create.errors.histogramIntervalWholeNumber"