Fix docs explorer cmd+click

This commit is contained in:
Gregory Schier
2025-07-15 07:02:08 -07:00
parent 0c60d190af
commit 2fcd2a3c07
7 changed files with 139 additions and 116 deletions

View File

@@ -38,7 +38,11 @@ export function HttpRequestLayout({ activeRequest, style }: Props) {
/>
);
if (activeRequest.bodyType === 'graphql' && showGraphQLDocExplorer && graphQLSchema != null) {
if (
activeRequest.bodyType === 'graphql' &&
showGraphQLDocExplorer[activeRequest.id] !== undefined &&
graphQLSchema != null
) {
return (
<SplitLayout
name="graphql_layout"
@@ -46,7 +50,7 @@ export function HttpRequestLayout({ activeRequest, style }: Props) {
firstSlot={requestResponseSplit}
secondSlot={({ style, orientation }) => (
<GraphQLDocsExplorer
key={activeRequest.id}
requestId={activeRequest.id}
schema={graphQLSchema}
className={classNames(orientation == 'horizontal' && '!ml-0')}
style={style}