Skip to content

Commit

Permalink
Require histogram interval in Rollup Job wizard to be a whole number. (
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Dec 4, 2018
1 parent b4dba24 commit 1ab8e14
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ export function validateHistogramInterval(histogram, histogramInterval) {
)];
}

if (Math.round(histogramInterval) !== histogramInterval) {
return [(
<FormattedMessage
id="xpack.rollupJobs.create.errors.histogramIntervalWholeNumber"
defaultMessage="Interval must be a whole number."
/>
)];
}

if (!histogramInterval) {
return [(
<FormattedMessage
Expand Down

0 comments on commit 1ab8e14

Please sign in to comment.