Reset filter after change (#2226)

This commit is contained in:
Erik Jan de Wit 2022-03-14 11:15:48 +01:00 committed by GitHub
parent 92401922d3
commit 5dba749b78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}}
/>