Set Fallback Image for broken Thumbnails (#50)
* Set Fallback Image for broken Thumbnails * Transparent placeholder * Added some comments
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user