diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx index 46d77358b3..4547033def 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx @@ -13,7 +13,11 @@ import AddBoardButton from './AddBoardButton'; import GalleryBoard from './GalleryBoard'; import NoBoardBoard from './NoBoardBoard'; -export const BoardsList = ({ isPrivate }: { isPrivate?: boolean }) => { +type Props = { + isPrivate: boolean; +}; + +export const BoardsList = ({ isPrivate }: Props) => { const { t } = useTranslation(); const selectedBoardId = useAppSelector((s) => s.gallery.selectedBoardId); const boardSearchText = useAppSelector((s) => s.gallery.boardSearchText); @@ -30,11 +34,9 @@ export const BoardsList = ({ isPrivate }: { isPrivate?: boolean }) => { return boards.filter((board) => { if (boardSearchText.length) { - return ( - board.is_private === !!isPrivate && board.board_name.toLowerCase().includes(boardSearchText.toLowerCase()) - ); + return board.is_private === isPrivate && board.board_name.toLowerCase().includes(boardSearchText.toLowerCase()); } else { - return board.is_private === !!isPrivate; + return board.is_private === isPrivate; } }); }, [boardSearchText, boards, isPrivate]); diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx index 49d2ae12b4..9e7806c484 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx @@ -20,7 +20,7 @@ const BoardsListWrapper = () => { {allowPrivateBoards && } - +