Skip to content

Commit

Permalink
Merge pull request #1207 from nfl/fix/graphql
Browse files Browse the repository at this point in the history
Fix bug in addons/graphql in reIndentQuery
  • Loading branch information
ndelangen authored Jun 7, 2017
2 parents b7a90fd + 89b23b2 commit 8851a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/graphql/src/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getDefautlFetcher(url) {
function reIndentQuery(query) {
const lines = query.split('\n');
const spaces = lines[lines.length - 1].length - 1;
return lines.map((l, i) => (i === 0 ? l : l.slice(spaces)).join('\n'));
return lines.map((l, i) => (i === 0 ? l : l.slice(spaces))).join('\n');
}

export function setupGraphiQL(config) {
Expand Down

0 comments on commit 8851a4e

Please sign in to comment.