Commit 8b3bb950 by Erik Sundell

remove redudant spread

parent 4e591653
......@@ -153,16 +153,15 @@ export function calculateResultsFromQueryTransactions(
new TableModel(),
...queryTransactions.filter(qt => qt.resultType === 'Table' && qt.done && qt.result).map(qt => qt.result)
);
const logsResult = {
...datasource && datasource.mergeStreams
const logsResult =
datasource && datasource.mergeStreams
? datasource.mergeStreams(
_.flatten(
queryTransactions.filter(qt => qt.resultType === 'Logs' && qt.done && qt.result).map(qt => qt.result)
),
graphInterval
)
: undefined,
};
: undefined;
return {
graphResult,
......
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