logs: better hasLogsVolumeSupport check (#50676)

This commit is contained in:
Gábor Farkas 2022-06-13 17:20:57 +02:00 committed by GitHub
parent 1902357693
commit d872aa993d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,6 @@ export const runQueries = (
refreshInterval,
absoluteRange,
cache,
logsVolumeDataProvider,
} = exploreItemState;
let newQuerySub;
@ -378,7 +377,14 @@ export const runQueries = (
newQuerySub = of(cachedValue)
.pipe(
mergeMap((data: PanelData) =>
decorateData(data, queryResponse, absoluteRange, refreshInterval, queries, !!logsVolumeDataProvider)
decorateData(
data,
queryResponse,
absoluteRange,
refreshInterval,
queries,
datasourceInstance != null && hasLogsVolumeSupport(datasourceInstance)
)
)
)
.subscribe((data) => {
@ -436,7 +442,7 @@ export const runQueries = (
absoluteRange,
refreshInterval,
queries,
!!getState().explore[exploreId]!.logsVolumeDataProvider
datasourceInstance != null && hasLogsVolumeSupport(datasourceInstance)
)
)
)