fix(ui): show uncategorized board when private boards disabled

This commit is contained in:
psychedelicious 2024-07-09 22:02:54 +10:00
parent 81cf47dd99
commit 2faf1e2ed3

View File

@ -81,7 +81,7 @@ const BoardsList = () => {
options={overlayScrollbarsParams.options} options={overlayScrollbarsParams.options}
> >
<Flex direction="column" maxH={346} gap={1}> <Flex direction="column" maxH={346} gap={1}>
<NoBoardBoard isSelected={selectedBoardId === 'none'} /> {allowPrivateBoards && <NoBoardBoard isSelected={selectedBoardId === 'none'} />}
{filteredPrivateBoards.map((board) => ( {filteredPrivateBoards.map((board) => (
<GalleryBoard <GalleryBoard
board={board} board={board}
@ -114,6 +114,7 @@ const BoardsList = () => {
<Collapse in={sharedBoardsDisclosure.isOpen} animateOpacity> <Collapse in={sharedBoardsDisclosure.isOpen} animateOpacity>
<OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayScrollbarsParams.options}> <OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayScrollbarsParams.options}>
<Flex direction="column" maxH={346} gap={1}> <Flex direction="column" maxH={346} gap={1}>
{!allowPrivateBoards && <NoBoardBoard isSelected={selectedBoardId === 'none'} />}
{filteredSharedBoards.map((board) => ( {filteredSharedBoards.map((board) => (
<GalleryBoard <GalleryBoard
board={board} board={board}