diff --git a/src-web/components/GraphQLEditor.tsx b/src-web/components/GraphQLEditor.tsx index 15129a54..3c70f37f 100644 --- a/src-web/components/GraphQLEditor.tsx +++ b/src-web/components/GraphQLEditor.tsx @@ -2,6 +2,7 @@ import { updateSchema } from 'cm6-graphql'; import type { EditorView } from 'codemirror'; import { useCallback, useEffect, useMemo, useRef } from 'react'; import { useIntrospectGraphQL } from '../hooks/useIntrospectGraphQL'; +import { tryFormatJson } from '../lib/formatters'; import type { HttpRequest } from '../lib/models'; import { Button } from './core/Button'; import type { EditorProps } from './core/Editor'; @@ -89,10 +90,10 @@ export function GraphQLEditor({ defaultValue, onChange, baseRequest, ...extraEdi onClick={() => { dialog.show({ title: 'Introspection Failed', - size: 'sm', + size: 'dynamic', id: 'introspection-failed', render: () => ( -
Variables
{description}
} -