Skip to content

Commit

Permalink
Merge pull request #353 from ymaheshwari1/#352
Browse files Browse the repository at this point in the history
Fixed: issue of uncaught promise when image check promise rejects(#352)
  • Loading branch information
ymaheshwari1 authored Dec 2, 2024
2 parents 9e4f1b9 + e914a50 commit 51ce089
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 51ce089

Please sign in to comment.