Preserve invalid GraphQL variables (#111)

This commit is contained in:
Gregory Schier
2024-09-25 09:02:31 -07:00
committed by GitHub
parent 215fcef3ea
commit d2c33f821c
3 changed files with 57 additions and 62 deletions

View File

@@ -419,8 +419,8 @@ export const RequestPane = memo(function RequestPane({
<GraphQLEditor
forceUpdateKey={forceUpdateKey}
baseRequest={activeRequest}
defaultValue={`${activeRequest.body?.text ?? ''}`}
onChange={handleBodyTextChange}
body={activeRequest.body}
onChange={handleBodyChange}
/>
) : activeRequest.bodyType === BODY_TYPE_FORM_URLENCODED ? (
<FormUrlencodedEditor