-
- {QueryField ? (
-
- ) : (
-
- )}
+ <>
+
+
+ {QueryField ? (
+
+ ) : (
+
+ )}
+
+
-
-
+ {queryErrors.length > 0 &&
}
+ >
);
}
}
diff --git a/public/app/features/explore/__snapshots__/ErrorContainer.test.tsx.snap b/public/app/features/explore/__snapshots__/ErrorContainer.test.tsx.snap
new file mode 100644
index 00000000000..4fe09accde1
--- /dev/null
+++ b/public/app/features/explore/__snapshots__/ErrorContainer.test.tsx.snap
@@ -0,0 +1,33 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`ErrorContainer should render component 1`] = `
+
+
+
+`;
diff --git a/public/app/features/explore/__snapshots__/Explore.test.tsx.snap b/public/app/features/explore/__snapshots__/Explore.test.tsx.snap
new file mode 100644
index 00000000000..1ce9e949c29
--- /dev/null
+++ b/public/app/features/explore/__snapshots__/Explore.test.tsx.snap
@@ -0,0 +1,147 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Explore should render component 1`] = `
+
+
+
+`;
diff --git a/public/app/plugins/datasource/elasticsearch/components/ElasticsearchQueryField.tsx b/public/app/plugins/datasource/elasticsearch/components/ElasticsearchQueryField.tsx
index 79f066fed84..aca6286dc54 100644
--- a/public/app/plugins/datasource/elasticsearch/components/ElasticsearchQueryField.tsx
+++ b/public/app/plugins/datasource/elasticsearch/components/ElasticsearchQueryField.tsx
@@ -59,7 +59,7 @@ class ElasticsearchQueryField extends React.PureComponent
{
};
render() {
- const { data, query } = this.props;
+ const { query } = this.props;
const { syntaxLoaded } = this.state;
return (
@@ -77,7 +77,6 @@ class ElasticsearchQueryField extends React.PureComponent {
/>
- {data && data.error ?