diff --git a/app/pages/catalog/suppliers/[supplierId]/[productId]/index.vue b/app/pages/catalog/suppliers/[supplierId]/[productId]/index.vue index 7fd1415..1daafcb 100644 --- a/app/pages/catalog/suppliers/[supplierId]/[productId]/index.vue +++ b/app/pages/catalog/suppliers/[supplierId]/[productId]/index.vue @@ -228,9 +228,8 @@ try { // Find product in offers for (const offer of offers) { - const line = offer.lines?.find((l: any) => l?.productUuid === productId.value) - if (line) { - product.value = { uuid: line.productUuid, name: line.productName } + if (offer.productUuid === productId.value && offer.productName) { + product.value = { uuid: offer.productUuid, name: offer.productName } if (offer.locationUuid && offer.locationName) { sourceLocation.value = { uuid: offer.locationUuid, name: offer.locationName } }