From c25fe22c5186d12dee3097f77ce35ce72b1c669f Mon Sep 17 00:00:00 2001 From: Musale Martin Date: Tue, 10 Dec 2024 12:35:02 +0300 Subject: [PATCH] fix: update the sample queries signed in/out click functionality (#3483) --- 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 (