From 78520ac3d187ef05628c57c5d88de52540889379 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Mon, 11 Nov 2019 16:34:37 +0100 Subject: [PATCH] Explore: Fix always disabled QueryField for InfluxDB (#20299) --- .../datasource/influxdb/components/InfluxLogsQueryField.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/influxdb/components/InfluxLogsQueryField.tsx b/public/app/plugins/datasource/influxdb/components/InfluxLogsQueryField.tsx index dde33828bbb..49052f8ce78 100644 --- a/public/app/plugins/datasource/influxdb/components/InfluxLogsQueryField.tsx +++ b/public/app/plugins/datasource/influxdb/components/InfluxLogsQueryField.tsx @@ -133,6 +133,7 @@ export class InfluxLogsQueryField extends React.PureComponent { const { datasource } = this.props; const { measurements, measurement, field, error } = this.state; const cascadeText = getChooserText({ measurement, field, error }); + const hasMeasurement = measurements && measurements.length > 0; return (
@@ -143,7 +144,7 @@ export class InfluxLogsQueryField extends React.PureComponent { onChange={this.onMeasurementsChange} expandIcon={null} > -