From 20bf21c3dab6615638aa8adc60631025b3536908 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Thu, 6 Jul 2017 22:49:59 -0400 Subject: [PATCH] test CI with guard statement --- src/ui/public/timefilter/timefilter.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 });