My code is expected to show if my random image is null
.
But nothing is happens, I tried to change the undefined
state to null
as well but it did not have any effect.
getImgUrl (image) {
if (image === null){
return './noimage.jpeg';
}
return 'https://image.tmdb.org/t/p/w500/' + image;
}