From e914a500a302b4b6fd3f700ef0d1c59dffecdc3a Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Mon, 2 Dec 2024 11:39:05 +0530 Subject: [PATCH] Fixed: issue of uncaught promise when image check promise rejects(#352) --- src/components/DxpShopifyImg.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DxpShopifyImg.vue b/src/components/DxpShopifyImg.vue index c7d1b4d..675530f 100644 --- a/src/components/DxpShopifyImg.vue +++ b/src/components/DxpShopifyImg.vue @@ -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)) } };