fix: reset channel search when navigating to another channel

This commit is contained in:
Sean Yesmunt 2019-09-23 09:57:03 -04:00
parent 1ed7ce10ea
commit c4703282a4

View file

@ -122,6 +122,11 @@ function ChannelPage(props: Props) {
);
}
React.useEffect(() => {
setSearchResults(null);
setSearchQuery('');
}, [uri]);
return (
<Page>
<div className="card">