From 48c149ea170b2a44a7c73b45dbc0c2792e334345 Mon Sep 17 00:00:00 2001 From: Musale Martin Date: Mon, 9 Dec 2024 12:25:13 +0300 Subject: [PATCH] fix: click handling logic for signed in/out functionality --- src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx b/src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx index 6981e5218..b6f706d17 100644 --- a/src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx +++ b/src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx @@ -224,7 +224,13 @@ const RenderSampleLeafs = (props: SampleLeaf) => { {leafs.map((query: ISampleQuery) => { const notSignedIn = !isSignedIn && query.method !== 'GET'; const handleOnClick = (item:ISampleQuery)=>{ - if(isSignedIn) {handleSelectedSample(item)} + if (!isSignedIn) { + if (query.method === 'GET') { + handleSelectedSample(item) + } + } else { + handleSelectedSample(item) + } } return (