Handle empty rawText case

pull/1081/head
Andrew Watkins 2017-04-03 11:32:30 -07:00
parent 73f6f286cc
commit 9d4a047ca9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ const Visualization = React.createClass({
}
return {
view: queryConfigs[activeQueryIndex].rawText ? TABLE : GRAPH,
view: typeof queryConfigs[activeQueryIndex].rawText === 'string' ? TABLE : GRAPH,
}
},