PanelQueryRunner: only skip applyFieldOverrides when streaming (#34438)

This commit is contained in:
Ryan McKinley
2021-05-19 22:00:00 -07:00
committed by GitHub
parent b02403e3fc
commit 40139a7ea9
8 changed files with 4 additions and 90 deletions

View File

@@ -98,6 +98,7 @@ export class PanelQueryRunner {
// If the shape is the same, we can skip field overrides
if (
data.state === LoadingState.Streaming &&
processFields &&
processedCount > 0 &&
lastData.length &&

View File

@@ -73,7 +73,6 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
return getFieldDisplayValues({
fieldConfig,
reduceOptions: options.reduceOptions,
ensureGlobalRange: true,
replaceVariables,
theme: config.theme2,
data: data.series,

View File

@@ -54,7 +54,6 @@ export class GaugePanel extends PureComponent<PanelProps<GaugeOptions>> {
const { data, options, replaceVariables, fieldConfig, timeZone } = this.props;
return getFieldDisplayValues({
fieldConfig,
ensureGlobalRange: true,
reduceOptions: options.reduceOptions,
replaceVariables,
theme: config.theme2,

View File

@@ -85,7 +85,6 @@ export class StatPanel extends PureComponent<PanelProps<StatPanelOptions>> {
return getFieldDisplayValues({
fieldConfig,
ensureGlobalRange: true,
reduceOptions: options.reduceOptions,
replaceVariables,
theme: config.theme2,