mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove redudant spread
This commit is contained in:
parent
4e591653bd
commit
8b3bb95007
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user