Commit 8760627e by Sofia Papagiannaki Committed by GitHub

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

* Fallback to the old field only if new field is undefined
parent e1e05cad
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment