Remove switch statement
parent
59281e2c1c
commit
982ff7d877
|
@ -103,13 +103,11 @@ const Visualization = React.createClass({
|
|||
const activeQuery = queries[activeQueryIndex]
|
||||
const defaultQuery = queries[0]
|
||||
|
||||
switch (view) {
|
||||
case TABLE:
|
||||
return this.renderTable(activeQuery || defaultQuery, heightPixels, onEditRawStatus)
|
||||
case GRAPH:
|
||||
default:
|
||||
this.renderGraph(queries)
|
||||
if (view === TABLE) {
|
||||
return this.renderTable(activeQuery || defaultQuery, heightPixels, onEditRawStatus)
|
||||
}
|
||||
|
||||
return this.renderGraph(queries)
|
||||
},
|
||||
|
||||
renderTable(query, heightPixels, onEditRawStatus) {
|
||||
|
|
Loading…
Reference in New Issue