Skip to content

Commit 9875cbd

Browse files
authored
Set Fallback Image for broken Thumbnails (#50)
* Set Fallback Image for broken Thumbnails * Transparent placeholder * Added some comments
1 parent a1c84df commit 9875cbd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

public/notFound.svg

+4
Loading

src/components/SpinnerImage.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default function SpinnerImage(props: IProps) {
3636
};
3737

3838
img.onerror = () => {
39-
setImagsrc('Not Found');
39+
// Setting to an actual image so CSS styling works consistently
40+
setImagsrc('/notFound.svg');
4041
};
4142

4243
return () => {

0 commit comments

Comments
 (0)