Skip to content
Snippets Groups Projects
Commit 333d8746 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

allow the SQL editor to start in an expanded state when the query is empty. (fixes #915)

parent 7dc8793d
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,15 @@ export default React.createClass({
};
},
componentWillMount: function() {
// if the sql is empty then start with the editor showing, otherwise our default is to start out collapsed
if (!this.props.query.native.query) {
this.setState({
showEditor: true
});
}
},
componentDidMount: function() {
this.loadAceEditor();
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment