Skip to content

Commit

Permalink
fix: resolve zoomed image count and pictures in VM (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakglobant authored Nov 28, 2023
1 parent 2fd7140 commit 4dfd425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default function DamageReport({
editedDamage,
editedPartDamageImages,
editedZoomedDamageImages,
editedDamageImages,
editedDamagePart,
isPopUpVisible,
isModalVisible,
Expand Down Expand Up @@ -342,7 +343,7 @@ export default function DamageReport({
part={editedDamagePart}
damage={editedDamage}
damageMode={damageMode}
imageCount={editedPartDamageImages.length}
imageCount={editedDamageImages.length}
onDismiss={handlePopUpDismiss}
onShowGallery={handleShowGallery}
onConfirm={handleSaveDamage}
Expand All @@ -355,7 +356,7 @@ export default function DamageReport({
<UpdateDamageModal
damage={editedDamage}
damageMode={damageMode}
images={editedPartDamageImages}
images={editedDamageImages}
onConfirm={handleSaveDamage}
onDismiss={handleGalleryDismiss}
part={editedDamagePart}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ function getDamages(inspection) {
base_image_type: relatedImage.base_image_type,
object_type: relatedImage.object_type,
url: relatedImage.path,
rendered_outputs: getRenderedOutputImages(
inspection.images.find((pic) => pic.id === relatedImage?.base_image_id),
),
}),
) ?? [],
severity: getSeverity(severityResult.value.custom_severity.level),
Expand Down

0 comments on commit 4dfd425

Please sign in to comment.