diff --git a/public/app/features/datasources/components/DataSourcePluginSettings.tsx b/public/app/features/datasources/components/DataSourcePluginSettings.tsx index 013625eaa55..0dfd48bb5bf 100644 --- a/public/app/features/datasources/components/DataSourcePluginSettings.tsx +++ b/public/app/features/datasources/components/DataSourcePluginSettings.tsx @@ -1,6 +1,7 @@ import { createElement, PureComponent } from 'react'; import { DataSourcePluginMeta, DataSourceSettings } from '@grafana/data'; +import { readOnlyCopy } from 'app/features/plugins/extensions/utils'; import { GenericDataSourcePlugin } from '../types'; @@ -33,7 +34,7 @@ export class DataSourcePluginSettings extends PureComponent {
{plugin.components.ConfigEditor && createElement(plugin.components.ConfigEditor, { - options: dataSource, + options: readOnlyCopy(dataSource), onOptionsChange: this.onModelChanged, })}