Skip to content

Commit

Permalink
fix: click handling logic for signed in/out functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
musale committed Dec 9, 2024
1 parent 1f9d50a commit 48c149e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/views/sidebar/sample-queries/SampleQueriesV9.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 48c149e

Please sign in to comment.