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

This commit is contained in:
CJ Cenizal 2018-12-18 11:25:41 -08:00 committed by GitHub
parent b5b64f4706
commit 3b206e280d
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"