emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/graphql-mode ebd6502c09 085/122: Merge pull request #25 fr


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode ebd6502c09 085/122: Merge pull request #25 from Malabarba/operation-bug
Date: Sat, 29 Jan 2022 08:03:37 -0500 (EST)

branch: elpa/graphql-mode
commit ebd6502c0901dd2864a6ac893659a0cd74b6ba73
Merge: 6f6b303af4 c643d53a4b
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #25 from Malabarba/operation-bug
    
    Don't send operationName when operation is an empty string
---
 graphql-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 5e800ad5b8..f39aa4d5ce 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -77,7 +77,7 @@
   "Put together a json like object with QUERY, OPERATION, and VARIABLES."
   (let* ((body '()))
     (push (cons 'query query) body)
-    (when operation
+    (when (and operation (not (string= operation "")))
       (push (cons 'operationName operation) body))
     (when variables
       (push (cons 'variables variables) body))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]