Skip to content

Commit

Permalink
[Timepicker] Ensure we filter out undefined values (elastic#51458) (e…
Browse files Browse the repository at this point in the history
…lastic#51752)

* Fix error with undefined from or to

* PR feedback

* Remove unnecessary test
  • Loading branch information
chrisronline authored Nov 27, 2019
1 parent c3727c5 commit 659dd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/public/query/timefilter/time_history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class TimeHistory {
}

add(time: TimeRange) {
if (!time) {
if (!time || !time.from || !time.to) {
return;
}

Expand Down

0 comments on commit 659dd92

Please sign in to comment.