mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InputDataSource: better empty value support (#17075)
This commit is contained in:
committed by
Torkel Ödegaard
parent
238a929262
commit
d8280b895d
@@ -2,7 +2,7 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Types
|
||||
import { InputDatasource } from './InputDatasource';
|
||||
import { InputDatasource, describeSeriesData } from './InputDatasource';
|
||||
import { InputQuery, InputOptions } from './types';
|
||||
|
||||
import { FormLabel, Select, QueryEditorProps, SelectOptionItem, SeriesData, TableInputCSV, toCSV } from '@grafana/ui';
|
||||
@@ -80,10 +80,10 @@ export class InputQueryEditor extends PureComponent<Props, State> {
|
||||
|
||||
<div className="btn btn-link">
|
||||
{query.data ? (
|
||||
datasource.getDescription(query.data)
|
||||
describeSeriesData(query.data)
|
||||
) : (
|
||||
<a href={`datasources/edit/${id}/`}>
|
||||
{name}: {datasource.getDescription(datasource.data)}
|
||||
{name}: {describeSeriesData(datasource.data)}
|
||||
<i className="fa fa-pencil-square-o" />
|
||||
</a>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user