chore: updated keyboard shortcuts

This commit is contained in:
liyasthomas
2021-12-13 08:53:12 +05:30
parent 5a9d08a3f1
commit e31dc6e08d
34 changed files with 53 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ type GQLSession = {
export const defaultGQLSession: GQLSession = {
request: makeGQLRequest({
name: "",
name: "Untitled request",
url: "https://echo.hoppscotch.io/graphql",
headers: [],
variables: `{ "id": "1" }`,
@@ -213,7 +213,7 @@ export function setGQLSession(session: GQLSession) {
}
export function useGQLRequestName() {
return useStream(gqlName$, "", (newName) => {
return useStream(gqlName$, gqlSessionStore.value.request.name, (newName) => {
gqlSessionStore.dispatch({
dispatcher: "setName",
payload: { newName },