Skip to content

Commit

Permalink
Fixed: issue of uncaught promise when image check promise rejects(hot…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Dec 2, 2024
1 parent 9e4f1b9 commit e914a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DxpShopifyImg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const prepareImgUrl = (src: string, size?: string) => {
const setImageUrl = () => {
if (props.src) {
const src: string = prepareImgUrl(props.src, props.size)
checkIfImageExists(src).then(() => imageUrl.value = src)
checkIfImageExists(src).then(() => imageUrl.value = src).catch(err => console.error("checkIfImageExists", err))
}
};
Expand Down

0 comments on commit e914a50

Please sign in to comment.