From 481fa4ed12b65766cc7340a091b24970efeca493 Mon Sep 17 00:00:00 2001 From: sanish chirayath Date: Fri, 2 Jan 2026 20:51:19 +0530 Subject: [PATCH] fix: authmode in graphql (#6636) --- .../RequestPane/GraphQLRequestPane/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js b/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js index 6bc8781e5..c1da54337 100644 --- a/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js +++ b/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js @@ -20,6 +20,7 @@ import GraphQLSchemaActions from '../GraphQLSchemaActions/index'; import HeightBoundContainer from 'ui/HeightBoundContainer'; import Settings from 'components/RequestPane/Settings'; import ResponsiveTabs from 'ui/ResponsiveTabs'; +import AuthMode from '../Auth/AuthMode/index'; const TAB_CONFIG = [ { key: 'query', label: 'Query' }, @@ -134,11 +135,15 @@ const GraphQLRequestPane = ({ item, collection, onSchemaLoad, toggleDocs, handle return
An error occurred!
; } - const rightContent = ( + const rightContent = requestPaneTab === 'auth' ? ( +
+ +
+ ) : requestPaneTab === 'query' ? (
- ); + ) : null; return (
@@ -147,7 +152,7 @@ const GraphQLRequestPane = ({ item, collection, onSchemaLoad, toggleDocs, handle activeTab={requestPaneTab} onTabSelect={selectTab} rightContent={rightContent} - rightContentRef={schemaActionsRef} + rightContentRef={rightContent ? schemaActionsRef : null} />