Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jun 22, 2024
1 parent 43a74a0 commit d2234a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions avBooth/booth-directive/booth-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,9 @@ angular.module('avBooth')
if (scope.isUuidPreview) {
var uuid = $location.search().uuid;
Authmethod.getLivePreview(uuid)
.then(previewResult.resolve, previewResult.reject);
.then(function (res) {
previewResult.resolve(res.data)
}, previewResult.reject);
} else {
previewResult.resolve(JSON.parse(scope.previewElection || sessionStorage.getItem(parseInt(attrs.electionId))));
}
Expand Down Expand Up @@ -973,7 +975,9 @@ angular.module('avBooth')
if (scope.isUuidPreview) {
var uuid = $location.search().uuid;
Authmethod.getLivePreview(uuid)
.then(previewResult.resolve, previewResult.reject);
.then(function (res) {
previewResult.resolve(res.data)
}, previewResult.reject);
} else {
previewResult.resolve(JSON.parse(scope.previewElection || sessionStorage.getItem(parseInt(attrs.electionId))));
}
Expand Down

0 comments on commit d2234a4

Please sign in to comment.