mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Cleanup the options initialization (#35080)
This commit is contained in:
parent
2c85bbb738
commit
f052f10289
@ -123,11 +123,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||
};
|
||||
|
||||
render() {
|
||||
// TODO: Clean up
|
||||
const { options } = this.props;
|
||||
options.jsonData.cloudName = options.jsonData.cloudName || 'azuremonitor';
|
||||
// This is bad, causes so many messy typing issues everwhere..
|
||||
options.secureJsonData = (options.secureJsonData || {}) as AzureDataSourceSecureJsonData;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user