Merge branch 'main' into release/invokeai-3-0-rc

This commit is contained in:
Lincoln Stein 2023-07-20 23:16:05 -04:00 committed by GitHub
commit 46801c076f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -30,9 +30,8 @@ const GalleryBoardName = (props: Props) => {
const numOfBoardImages = useBoardTotal(selectedBoardId); const numOfBoardImages = useBoardTotal(selectedBoardId);
const formattedBoardName = useMemo(() => { const formattedBoardName = useMemo(() => {
if (!boardName || !numOfBoardImages) { if (!boardName) return '';
return ''; if (boardName && !numOfBoardImages) return boardName;
}
if (boardName.length > 20) { if (boardName.length > 20) {
return `${boardName.substring(0, 20)}... (${numOfBoardImages})`; return `${boardName.substring(0, 20)}... (${numOfBoardImages})`;
} }

View File

@ -76,7 +76,7 @@ export default function FoundModelsList() {
dispatch( dispatch(
addToast( addToast(
makeToast({ makeToast({
title: 'Faile To Add Model', title: 'Failed To Add Model',
status: 'error', status: 'error',
}) })
) )