mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Cloudwatch: Fix regression with profile datasource field (#28138)
* Fallback to the old field only if new field is undefined
This commit is contained in:
parent
e1e05cad7d
commit
8760627eb0
@ -133,7 +133,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
|||||||
const { options } = this.props;
|
const { options } = this.props;
|
||||||
const secureJsonData = (options.secureJsonData || {}) as CloudWatchSecureJsonData;
|
const secureJsonData = (options.secureJsonData || {}) as CloudWatchSecureJsonData;
|
||||||
let profile = options.jsonData.profile;
|
let profile = options.jsonData.profile;
|
||||||
if (!profile) {
|
if (profile === undefined) {
|
||||||
profile = options.database;
|
profile = options.database;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user