Set Fallback Image for broken Thumbnails (#50)

* Set Fallback Image for broken Thumbnails

* Transparent placeholder

* Added some comments
This commit is contained in:
Sascha Hahne
2021-10-27 00:11:28 +03:30
committed by GitHub
parent a1c84df0d5
commit 9875cbdc70
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ export default function SpinnerImage(props: IProps) {
};
img.onerror = () => {
setImagsrc('Not Found');
// Setting to an actual image so CSS styling works consistently
setImagsrc('/notFound.svg');
};
return () => {