Skip to content

Commit

Permalink
Fixed image with upload error status are displayed on top of the gall…
Browse files Browse the repository at this point in the history
…ery (#814)
  • Loading branch information
dlymonkai authored Jul 18, 2024
1 parent 7c6ab33 commit 59a0597
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function needsToBeRetaken(item: InspectionGalleryItem): boolean {
return (
!item.isAddDamage &&
item.isTaken &&
[ImageStatus.UPLOAD_FAILED, ImageStatus.NOT_COMPLIANT].includes(item.image.status)
[ImageStatus.UPLOAD_FAILED, ImageStatus.NOT_COMPLIANT, ImageStatus.UPLOAD_ERROR].includes(
item.image.status,
)
);
}

Expand Down

0 comments on commit 59a0597

Please sign in to comment.