Skip to content

Commit

Permalink
Merge pull request #2884 from exadel-inc/bugfix/image-container-warnings
Browse files Browse the repository at this point in the history
fix(esl-image-utils): omit console warnings in case of missing inner image
  • Loading branch information
ala-n authored Jan 27, 2025
2 parents 3167dc5 + ca13a8a commit 50084b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export class ESLImageContainerMixin extends ESLMixinElement {

@listen({
event: 'load error',
target: (that: ESLImageContainerMixin) => that.$images
target: (that: ESLImageContainerMixin) => that.$images,
condition: (that: ESLImageContainerMixin) => !!that.$images.length
})
protected _onReady(): void {
if (!this.complete) return;
Expand Down

0 comments on commit 50084b3

Please sign in to comment.