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(),
|
new TableModel(),
|
||||||
...queryTransactions.filter(qt => qt.resultType === 'Table' && qt.done && qt.result).map(qt => qt.result)
|
...queryTransactions.filter(qt => qt.resultType === 'Table' && qt.done && qt.result).map(qt => qt.result)
|
||||||
);
|
);
|
||||||
const logsResult = {
|
const logsResult =
|
||||||
...datasource && datasource.mergeStreams
|
datasource && datasource.mergeStreams
|
||||||
? datasource.mergeStreams(
|
? datasource.mergeStreams(
|
||||||
_.flatten(
|
_.flatten(
|
||||||
queryTransactions.filter(qt => qt.resultType === 'Logs' && qt.done && qt.result).map(qt => qt.result)
|
queryTransactions.filter(qt => qt.resultType === 'Logs' && qt.done && qt.result).map(qt => qt.result)
|
||||||
),
|
),
|
||||||
graphInterval
|
graphInterval
|
||||||
)
|
)
|
||||||
: undefined,
|
: undefined;
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
graphResult,
|
graphResult,
|
||||||
|
Loading…
Reference in New Issue
Block a user