diff --git a/app/components/Explorer/Explorer.js b/app/components/Explorer/Explorer.js index 7da807f0c..efbfb8802 100644 --- a/app/components/Explorer/Explorer.js +++ b/app/components/Explorer/Explorer.js @@ -111,12 +111,21 @@ export default class Explorer extends Component { } } + clearDefaultQueryState() { + this.setState({ query: undefined, variables: undefined }); + } + render() { const { noFetch } = this.state; const graphiql = ( - {this.graphiql = r}}> + { this.clearDefaultQueryState() }} + onEditVariables={() => { this.clearDefaultQueryState() }} + variables={this.state.variables} + ref={r => {this.graphiql = r}} + >