Skip to content

Commit

Permalink
fix(GraphiQL) fallback to defaultQuery if there's no stored query
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Apr 27, 2016
1 parent e7a684e commit 41f1ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GraphiQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class GraphiQL extends React.Component {
// Determine the initial query to display.
const query =
props.query !== undefined ? props.query :
this._storageGet('query') !== undefined ? this._storageGet('query') :
this._storageGet('query') !== null ? this._storageGet('query') :
props.defaultQuery !== undefined ? props.defaultQuery :
defaultQuery;

Expand Down

0 comments on commit 41f1ca0

Please sign in to comment.