diff --git a/src/ui/public/timefilter/timefilter.js b/src/ui/public/timefilter/timefilter.js index 9afd1e201facc..00518c9d9165e 100644 --- a/src/ui/public/timefilter/timefilter.js +++ b/src/ui/public/timefilter/timefilter.js @@ -78,6 +78,12 @@ uiModules }; Timefilter.prototype.get = function (indexPattern) { + + if (!indexPattern) { + //in CI, we sometimes seem to fail here. + return; + } + let filter; const timefield = indexPattern.timeFieldName && _.find(indexPattern.fields, { name: indexPattern.timeFieldName });