mirror of
https://github.com/grafana/grafana.git
synced 2025-01-25 15:56:56 -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 secureJsonData = (options.secureJsonData || {}) as CloudWatchSecureJsonData;
|
||||
let profile = options.jsonData.profile;
|
||||
if (!profile) {
|
||||
if (profile === undefined) {
|
||||
profile = options.database;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user