Skip to content

Commit

Permalink
clear filter when switching tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
chubert-sb committed Oct 5, 2023
1 parent 0e9a8fb commit eea390e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/cqlLibraryLanding/CqlLibraryLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ function CqlLibraryLanding() {

const handleTabChange = (event, nextTab) => {
setCqlLibraryList(null);
setFilter("");
setCurrentFilter("");
setActiveTab(nextTab);
abortController.current && abortController.current.abort();
};
Expand Down

0 comments on commit eea390e

Please sign in to comment.