From 52d56e96a58cde982a6cf46a5f61901952ff4632 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Fri, 21 Jul 2023 05:07:50 +1200 Subject: [PATCH] fix: No board name being displayed if it is empty --- .../web/src/features/gallery/components/GalleryBoardName.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx b/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx index 27565a52aa..60926e165e 100644 --- a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx @@ -30,9 +30,8 @@ const GalleryBoardName = (props: Props) => { const numOfBoardImages = useBoardTotal(selectedBoardId); const formattedBoardName = useMemo(() => { - if (!boardName || !numOfBoardImages) { - return ''; - } + if (!boardName) return ''; + if (boardName && !numOfBoardImages) return boardName; if (boardName.length > 20) { return `${boardName.substring(0, 20)}... (${numOfBoardImages})`; }