From 4b534e9a9412d28c5a5e741287c0153af2286c2f Mon Sep 17 00:00:00 2001 From: James Hush Date: Tue, 6 Jun 2017 14:24:19 -0700 Subject: [PATCH] Fix bug in addons/graphql in reIndentQuery --- addons/graphql/src/preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/graphql/src/preview.js b/addons/graphql/src/preview.js index 2dc1c2cf9300..5d18a1180981 100644 --- a/addons/graphql/src/preview.js +++ b/addons/graphql/src/preview.js @@ -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) {