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 1/2] 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})`; } From 8e7f58106520e057b7681c4370b08287a555741f Mon Sep 17 00:00:00 2001 From: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com> Date: Thu, 20 Jul 2023 20:51:54 -0400 Subject: [PATCH 2/2] Update FoundModelsList.tsx --- .../ModelManager/subpanels/AddModelsPanel/FoundModelsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/ui/components/tabs/ModelManager/subpanels/AddModelsPanel/FoundModelsList.tsx b/invokeai/frontend/web/src/features/ui/components/tabs/ModelManager/subpanels/AddModelsPanel/FoundModelsList.tsx index 82a492b40d..315e221366 100644 --- a/invokeai/frontend/web/src/features/ui/components/tabs/ModelManager/subpanels/AddModelsPanel/FoundModelsList.tsx +++ b/invokeai/frontend/web/src/features/ui/components/tabs/ModelManager/subpanels/AddModelsPanel/FoundModelsList.tsx @@ -76,7 +76,7 @@ export default function FoundModelsList() { dispatch( addToast( makeToast({ - title: 'Faile To Add Model', + title: 'Failed To Add Model', status: 'error', }) )