mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
b4dba24136
commit
1ab8e144df
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue