From 92dcbedf2a7985fd492e80268b424c138066deed Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 12 Nov 2023 21:16:42 -0800 Subject: [PATCH] Minor tweaks --- package.json | 2 +- src-web/hooks/useIntrospectGraphQL.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a96c3c14..b52e929f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "start": "run-s build:plugins tauri-dev", + "start": "npm run build:plugins && npm run tauri-dev", "tauri-dev": "YAAK_ENV=development tauri dev --no-watch --config src-tauri/tauri-dev.conf.json", "tauri-build": "tauri build", "tauri": "tauri", diff --git a/src-web/hooks/useIntrospectGraphQL.ts b/src-web/hooks/useIntrospectGraphQL.ts index 9091bce9..3b272e4b 100644 --- a/src-web/hooks/useIntrospectGraphQL.ts +++ b/src-web/hooks/useIntrospectGraphQL.ts @@ -34,7 +34,7 @@ export function useIntrospectGraphQL(baseRequest: HttpRequest) { setError(undefined); const args = { ...baseRequest, - bodyType: 'graphql', + bodyType: 'application/json', body: { text: introspectionRequestBody }, }; const response = await minPromiseMillis(sendEphemeralRequest(args, activeEnvironmentId), 700);