Skip to content

Commit

Permalink
Feedbacks | Search clear to stay on same tab
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 14, 2024
1 parent e35eabe commit bac291b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/SearchInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const SearchInput = props => {
if(isGlobal)
queryParams.set('type', resourceType)
URL += `?${queryParams.toString()}`
} else if(isGlobal) {
} else if(isGlobal || queryParams.get('type')) {
URL += `?type=${resourceType}`
}
history.push(URL.replace('?&', '?'));
Expand Down

0 comments on commit bac291b

Please sign in to comment.