fix(ui): close boards search when toggling panel

This commit is contained in:
psychedelicious 2024-07-24 13:28:11 +10:00
parent 2503dca813
commit 17493f4ae0

View File

@ -50,9 +50,9 @@ const ImageGalleryContent = () => {
if (boardSearchText.length) {
dispatch(boardSearchTextChanged(''));
}
boardSearchDisclosure.onClose();
boardsListPanel.toggle();
}, [boardSearchText, dispatch, boardsListPanel]);
}, [boardSearchText.length, boardSearchDisclosure, boardsListPanel, dispatch]);
return (
<Flex position="relative" flexDirection="column" h="full" w="full" pt={2}>