Add a @grafana/runtime package with backendSrv interface (#16533)
grafana-runtime/tsconfig.json imports query to avoid a build error ¯\_(ツ)_/¯
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
||||
import _ from 'lodash';
|
||||
|
||||
// Services & Utils
|
||||
import { getBackendSrv, BackendSrv } from 'app/core/services/backend_srv';
|
||||
import { getBackendSrv } from '@grafana/runtime';
|
||||
|
||||
// Components
|
||||
import { FormLabel, Select, SelectOptionItem } from '@grafana/ui';
|
||||
@@ -21,7 +21,7 @@ interface State {
|
||||
type Props = QueryEditorProps<TestDataDatasource, TestDataQuery>;
|
||||
|
||||
export class QueryEditor extends PureComponent<Props> {
|
||||
backendSrv: BackendSrv = getBackendSrv();
|
||||
backendSrv = getBackendSrv();
|
||||
|
||||
state: State = {
|
||||
scenarioList: [],
|
||||
|
||||
Reference in New Issue
Block a user