diff --git a/ui/src/data_explorer/components/Visualization.js b/ui/src/data_explorer/components/Visualization.js index eb0ca1ed5..bbf9c90fc 100644 --- a/ui/src/data_explorer/components/Visualization.js +++ b/ui/src/data_explorer/components/Visualization.js @@ -102,17 +102,24 @@ const Visualization = React.createClass({ renderVisualization(view, queries, heightPixels, onEditRawStatus, activeQueryIndex) { const activeQuery = queries[activeQueryIndex] const defaultQuery = queries[0] - const q = activeQuery || defaultQuery switch (view) { case TABLE: - return (q ? :
Enter your query below
) + return this.renderTable(activeQuery || defaultQuery, heightPixels, onEditRawStatus) case GRAPH: default: this.renderGraph(queries) } }, + renderTable(query, heightPixels, onEditRawStatus) { + if (!query) { + return
Enter your query below
+ } + + return
+ }, + renderGraph(queries) { const {cellType, autoRefresh, activeQueryIndex} = this.props const isInDataExplorer = true