Cloudwatch: Fix regression with profile datasource field (#28138)

* Fallback to the old field only if new field is undefined
This commit is contained in:
Sofia Papagiannaki 2020-10-13 15:22:00 +03:00 committed by GitHub
parent e1e05cad7d
commit 8760627eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
const { options } = this.props;
const secureJsonData = (options.secureJsonData || {}) as CloudWatchSecureJsonData;
let profile = options.jsonData.profile;
if (!profile) {
if (profile === undefined) {
profile = options.database;
}