From 8760627eb0d25a709deb776bc409b7dbdf82c467 Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki Date: Tue, 13 Oct 2020 15:22:00 +0300 Subject: [PATCH] Cloudwatch: Fix regression with profile datasource field (#28138) * Fallback to the old field only if new field is undefined --- .../plugins/datasource/cloudwatch/components/ConfigEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx index 26cefc39785..74a86118e40 100644 --- a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx @@ -133,7 +133,7 @@ export class ConfigEditor extends PureComponent { const { options } = this.props; const secureJsonData = (options.secureJsonData || {}) as CloudWatchSecureJsonData; let profile = options.jsonData.profile; - if (!profile) { + if (profile === undefined) { profile = options.database; }