mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Closes: #94248
This commit is contained in:
parent
623f43cb8c
commit
088525c003
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ export class Handler {
|
|||
return function (eventPayload) {
|
||||
switch (eventType) {
|
||||
case 'brush':
|
||||
const xRaw = _.get(eventPayload.data, 'series[0].values[0].xRaw');
|
||||
const { xRaw } = eventPayload.data.series[0]?.values.find(({ xRaw }) => Boolean(xRaw));
|
||||
|
||||
if (!xRaw) return; // not sure if this is possible?
|
||||
const [start, end] = eventPayload.range;
|
||||
const range = [convertToTimestamp(start), convertToTimestamp(end)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue