diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx index 61fa9fb267..a42410b885 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx @@ -50,9 +50,9 @@ const ImageGalleryContent = () => { if (boardSearchText.length) { dispatch(boardSearchTextChanged('')); } - + boardSearchDisclosure.onClose(); boardsListPanel.toggle(); - }, [boardSearchText, dispatch, boardsListPanel]); + }, [boardSearchText.length, boardSearchDisclosure, boardsListPanel, dispatch]); return (