Skip to content

Commit

Permalink
fix: Fix errors with sourceless images
Browse files Browse the repository at this point in the history
  • Loading branch information
uxder committed Mar 9, 2022
1 parent 5e53894 commit 138e83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
`;
Expand Down

0 comments on commit 138e83c

Please sign in to comment.