SSE: Add constant for data source name (#48443)

* add property for expressions datasource name

* remove console log
This commit is contained in:
Peter Holmberg 2022-05-02 11:42:20 +02:00 committed by GitHub
parent bde368be55
commit 69ee917c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import { BackendDataSourceResponse, toDataQueryResponse } from './queryResponse'
export const ExpressionDatasourceRef = Object.freeze({
type: '__expr__',
uid: '__expr__',
name: 'Expression',
});
/**

View File

@ -69,7 +69,7 @@ export const ExpressionDatasourceUID = '-100';
export const instanceSettings: DataSourceInstanceSettings = {
id: -100,
uid: ExpressionDatasourceUID,
name: ExpressionDatasourceRef.type,
name: ExpressionDatasourceRef.name,
type: ExpressionDatasourceRef.type,
access: 'proxy',
meta: {