mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #593] [MERGED] Fix variablesJSONString store default for GraphQL page #2731
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/593
Author: @dihmeetree
Created: 2/24/2020
Status: ✅ Merged
Merged: 2/24/2020
Merged by: @NBTX
Base:
master← Head:patch-1📝 Commits (1)
7022ef5Fix variables JSON string📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
store/state.js(+1 -1)📄 Description
I don't have any variables set, and when running a mutation; I get the following error:
This error is caused by Postwoman trying to JSON parse an empty string, which is set as the default.
github.com/liyasthomas/postwoman@f690ea01c4/pages/graphql.vue (L505)Setting the
variablesJSONStringvariable to the correct default ({}) fixes this issue :)Before:

After:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.