mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Cleanup the options initialization (#35080)
This commit is contained in:
-4
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user