From f88292a3057407fc682cf77fa666424f2aef7da3 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 29 Jul 2021 01:02:57 +0000 Subject: [PATCH] Reset search when changing member sorting --- webclient/src/Members.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webclient/src/Members.js b/webclient/src/Members.js index 19acbd4..2a24db1 100644 --- a/webclient/src/Members.js +++ b/webclient/src/Members.js @@ -90,6 +90,10 @@ export function Members(props) { }); }, [search, sort]); + useEffect(() => { + setSearch({seq: 0, q: ''}); + }, [sort]); + return (
Member List
@@ -156,7 +160,7 @@ export function Members(props) { } - {numShow !== 100 ? + {response.results.length > 20 && numShow !== 100 ?