fix: reset channel search when navigating to another channel
This commit is contained in:
parent
1ed7ce10ea
commit
c4703282a4
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ function ChannelPage(props: Props) {
|
|||
);
|
||||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
setSearchResults(null);
|
||||
setSearchQuery('');
|
||||
}, [uri]);
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<div className="card">
|
||||
|
|
Loading…
Add table
Reference in a new issue