diff --git a/public/app/features/query/components/QueryEditorRow.tsx b/public/app/features/query/components/QueryEditorRow.tsx index 3c9137fad5d..efcec635deb 100644 --- a/public/app/features/query/components/QueryEditorRow.tsx +++ b/public/app/features/query/components/QueryEditorRow.tsx @@ -64,7 +64,7 @@ interface Props { interface State { /** DatasourceUid or ds variable expression used to resolve current datasource */ - loadedDataSourceIdentifier?: string | null; + queriedDataSourceIdentifier?: string | null; datasource: DataSourceApi | null; datasourceUid?: string | null; hasTextEditMode: boolean; @@ -158,18 +158,19 @@ export class QueryEditorRow extends PureComponent, - loadedDataSourceIdentifier: interpolatedUID, + queriedDataSourceIdentifier: interpolatedUID, hasTextEditMode: has(datasource, 'components.QueryCtrl.prototype.toggleEditorMode'), }); } componentDidUpdate(prevProps: Props) { - const { datasource, loadedDataSourceIdentifier } = this.state; + const { datasource, queriedDataSourceIdentifier } = this.state; const { data, query } = this.props; if (prevProps.id !== this.props.id) { @@ -191,7 +192,7 @@ export class QueryEditorRow extends PureComponent extends PureComponent {