From 8b9cb9d034a3368dc3c69f541f4d0f62fc304e23 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 21 Jan 2021 14:24:38 +0100 Subject: [PATCH] TimeSeriesPanel: Fixed default value for gradientMode (#30484) (#30492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 59ef36812e3be1c64d664e8f8ff9d7a640815bfb) Co-authored-by: Torkel Ödegaard --- public/app/plugins/panel/timeseries/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/timeseries/config.ts b/public/app/plugins/panel/timeseries/config.ts index d45b2ea542c..9dde12d7c04 100644 --- a/public/app/plugins/panel/timeseries/config.ts +++ b/public/app/plugins/panel/timeseries/config.ts @@ -89,7 +89,7 @@ export function getGraphFieldConfig(cfg: GraphFieldConfig): SetFieldConfigOption .addRadio({ path: 'gradientMode', name: 'Gradient mode', - defaultValue: graphFieldOptions.fillGradient[0], + defaultValue: graphFieldOptions.fillGradient[0].value, settings: { options: graphFieldOptions.fillGradient, },