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-26 22:41:28 +02:00
committed by GitHub
parent a1c84df0d5
commit 9875cbdc70
2 changed files with 6 additions and 1 deletions

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 () => {