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 formattedBoardName = useMemo(() => {
if (!boardName || !numOfBoardImages) {
return '';
}
if (!boardName) return '';
if (boardName && !numOfBoardImages) return boardName;
if (boardName.length > 20) {
return `${boardName.substring(0, 20)}... (${numOfBoardImages})`;
}

View File

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