Show missing image icon for missing manga thumbnail urls
This commit is contained in:
@@ -131,7 +131,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef<HTML
|
||||
height="100%"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
sx={{ background: (theme) => theme.palette.background.default }}
|
||||
sx={{ background: (theme) => theme.palette.background.default, ...spinnerStyle }}
|
||||
>
|
||||
<ImageIcon fontSize="large" />
|
||||
</Stack>
|
||||
|
||||
@@ -247,7 +247,7 @@ export class Mangas {
|
||||
static getThumbnailUrl(manga: Partial<MangaThumbnailInfo>): string {
|
||||
const thumbnailUrl = manga.thumbnailUrl
|
||||
? `${manga.thumbnailUrl}?fetchedAt=${manga.thumbnailUrlLastFetched}`
|
||||
: 'nonExistingMangaUrl';
|
||||
: '';
|
||||
return requestManager.getValidImgUrlFor(thumbnailUrl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user