diff --git a/ui/src/pages/ProductStockByAttributes.vue b/ui/src/pages/ProductStockByAttributes.vue index 5f41106..6bcdf52 100644 --- a/ui/src/pages/ProductStockByAttributes.vue +++ b/ui/src/pages/ProductStockByAttributes.vue @@ -589,8 +589,6 @@ function resolveProductImageUrl(item) { async function resolveProductImageUrlForCarousel(item) { const resolved = resolveProductImageUrl(item) - const fullUrl = String(resolved.fullUrl || '').trim() - if (fullUrl) return fullUrl const contentUrl = String(resolved.contentUrl || '').trim() if (contentUrl) { try { @@ -605,6 +603,8 @@ async function resolveProductImageUrlForCarousel(item) { // fall through to public url } } + const fullUrl = String(resolved.fullUrl || '').trim() + if (fullUrl) return fullUrl const publicUrl = String(resolved.publicUrl || '').trim() return String(publicUrl || fullUrl || contentUrl || '').trim() } diff --git a/ui/src/pages/ProductStockQuery.vue b/ui/src/pages/ProductStockQuery.vue index 5860867..97cbe86 100644 --- a/ui/src/pages/ProductStockQuery.vue +++ b/ui/src/pages/ProductStockQuery.vue @@ -576,8 +576,6 @@ function resolveProductImageUrl(item) { async function resolveProductImageUrlForCarousel(item) { const resolved = resolveProductImageUrl(item) - const fullUrl = String(resolved.fullUrl || '').trim() - if (fullUrl) return fullUrl const contentUrl = String(resolved.contentUrl || '').trim() if (contentUrl) { try { @@ -592,6 +590,8 @@ async function resolveProductImageUrlForCarousel(item) { // fall through to public url } } + const fullUrl = String(resolved.fullUrl || '').trim() + if (fullUrl) return fullUrl const publicUrl = String(resolved.publicUrl || '').trim() return String(publicUrl || fullUrl || contentUrl || '').trim() }