Clear prevSearch when closing modal
This commit is contained in:
parent
497f9e882c
commit
0d085a2b4d
File diff suppressed because one or more lines are too long
@ -56,6 +56,7 @@ const AddChannel = () => {
|
||||
dispatch(searchChannels(server, ''));
|
||||
setTimeout(() => inputEl.current.focus(), 0);
|
||||
} else {
|
||||
prevSearch.current = '';
|
||||
setQ('');
|
||||
}
|
||||
}, [modal.isOpen]);
|
||||
|
Loading…
Reference in New Issue
Block a user