diff --git a/src/components/image.ts b/src/components/image.ts index 4f09c43991..0c4c4adaf2 100644 --- a/src/components/image.ts +++ b/src/components/image.ts @@ -253,7 +253,7 @@ export class DeguImage extends LitElement { ? this.renderImage( this.src + `=rw-e365-w${this.autoRenderWidth}${this.googleParams}` ) - : this.src.includes('.svg') + : this.src && this.src.includes('.svg') ? this.renderImage(this.src) : this.renderDynamicSourceSetImage()} `;