Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Nov 23, 2022
1 parent 1f7175b commit 0bc6499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/files/public/components/image/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export const Image = ({ src, url, alt, onLoad, onError, meta, ...rest }: Props)
onError?.(ev);
} else {
// blurhash failed to load, consider it is loaded to start loading the full image
// eslint-disable-next-line no-console
console.warn(`Failed to load blurhash src`);
setIsBlurHashLoaded(true);
}
}}
Expand Down

0 comments on commit 0bc6499

Please sign in to comment.