Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onProduct (product: any): void {
if (product == null ||
!product.contents['download/urat_pga.jpg']) {
this.imageUrl = null;
return;
}
const image = product.contents['download/urat_pga.jpg'];
this.imageUrl = image.url;
}
onProduct (product: any): void {
if (product == null ||
!product.contents['download/urat_pga.jpg']) {
this.imageUrl = null;
return;
}
const image = product.contents['download/urat_pga.jpg'];
this.imageUrl = image.url;
}