Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 08f4747

Browse files
committed
Merge pull request #511 from appirio-tech/feature/tom-lightbox-next
fixed lightbox error
2 parents 2bdbfa3 + 14440de commit 08f4747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/directives/challenge-user-place/challenge-user-place.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
$scope.selectedIndex += x;
7171
if ($scope.selectedIndex < 0) $scope.selectedIndex = $scope.challenge.userDetails.submissions.length - 1;
7272
if ($scope.selectedIndex == $scope.challenge.userDetails.submissions.length) $scope.selectedIndex = 0;
73-
$scope.selectedImage = $scope.challenge.userDetails.submissions[$scope.selectedIndex].fullImage;
73+
$scope.selectedImage = $scope.challenge.userDetails.submissions[$scope.selectedIndex].submissionImage && $scope.challenge.userDetails.submissions[$scope.selectedIndex].submissionImage.full;
7474
}
7575

7676
function openLightbox() {

0 commit comments

Comments
 (0)