Reset filter after change (#2226)
This commit is contained in:
parent
92401922d3
commit
5dba749b78
1 changed files with 8 additions and 1 deletions
|
@ -198,14 +198,21 @@ export default function ClientScopesSection() {
|
|||
<SearchToolbar
|
||||
searchType={searchType}
|
||||
type={searchTypeType}
|
||||
onSelect={(searchType) => setSearchType(searchType)}
|
||||
onSelect={(searchType) => {
|
||||
setSearchType(searchType);
|
||||
setSearchProtocol("all");
|
||||
setSearchTypeType(AllClientScopes.none);
|
||||
refresh();
|
||||
}}
|
||||
onType={(value) => {
|
||||
setSearchTypeType(value);
|
||||
setSearchProtocol("all");
|
||||
refresh();
|
||||
}}
|
||||
protocol={searchProtocol}
|
||||
onProtocol={(protocol) => {
|
||||
setSearchProtocol(protocol);
|
||||
setSearchTypeType(AllClientScopes.none);
|
||||
refresh();
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue