Skip to content

Commit

Permalink
fix: update the sample queries signed in/out click functionality (#3483)
Browse files Browse the repository at this point in the history
  • Loading branch information
musale authored Dec 10, 2024
1 parent 7a3a077 commit c25fe22
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 c25fe22

Please sign in to comment.