Commit d1a24883 by Erik Sundell

pass data correctly to event handler

parent 3162dda0
......@@ -718,7 +718,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
try {
const now = Date.now();
const res = await datasource.query(transaction.options);
this.exploreEvents.emit('data-received', res);
this.exploreEvents.emit('data-received', res.data || []);
const latency = Date.now() - now;
const results = resultGetter ? resultGetter(res.data) : res.data;
this.completeQueryTransaction(transaction.id, results, latency, queries, datasourceId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment