Skip to content

Commit

Permalink
fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Apr 21, 2020
1 parent f441523 commit 9197e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ export class VisualizeEmbeddable extends Embeddable<VisualizeInput, VisualizeOut
const context = {
embeddable: this,
timeFieldName: this.vis.data.indexPattern!.timeFieldName!,
data: event.data,
negate: event.negate,
...event.data,
};
getUiActions()
.getTrigger(triggerId)
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/visualizations/public/expressions/vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ export class ExprVis extends EventEmitter {
if (!this.eventsSubject) return;
this.eventsSubject.next({
name: 'filterBucket',
data: data.data ? data.data : [data],
negate: data.negate,
data: data.data ? data : { data: [data] },
});
},
brush: (data: any) => {
Expand Down

0 comments on commit 9197e9e

Please sign in to comment.