mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
Explore: Fix always disabled QueryField for InfluxDB (#20299)
This commit is contained in:
parent
c941718a5f
commit
78520ac3d1
@ -133,6 +133,7 @@ export class InfluxLogsQueryField extends React.PureComponent<Props, State> {
|
||||
const { datasource } = this.props;
|
||||
const { measurements, measurement, field, error } = this.state;
|
||||
const cascadeText = getChooserText({ measurement, field, error });
|
||||
const hasMeasurement = measurements && measurements.length > 0;
|
||||
|
||||
return (
|
||||
<div className="gf-form-inline gf-form-inline--nowrap">
|
||||
@ -143,7 +144,7 @@ export class InfluxLogsQueryField extends React.PureComponent<Props, State> {
|
||||
onChange={this.onMeasurementsChange}
|
||||
expandIcon={null}
|
||||
>
|
||||
<button className="gf-form-label gf-form-label--btn" disabled={!measurement}>
|
||||
<button className="gf-form-label gf-form-label--btn" disabled={!hasMeasurement}>
|
||||
{cascadeText} <i className="fa fa-caret-down" />
|
||||
</button>
|
||||
</Cascader>
|
||||
|
Loading…
Reference in New Issue
Block a user