Skip to content

Commit

Permalink
test CI with guard statement
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Jul 7, 2017
1 parent 0e77c86 commit 20bf21c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/public/timefilter/timefilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down

0 comments on commit 20bf21c

Please sign in to comment.