Skip to content

Commit

Permalink
Guarantee modal closes
Browse files Browse the repository at this point in the history
The errors end up on the root and not the modal, so just close the modal.
Making the error appear on the modal requires a weaver change.
  • Loading branch information
kaladay committed May 12, 2020
1 parent e5cdf16 commit ca9a214
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/internalRequestController.js
Expand Up @@ -115,6 +115,8 @@ app.controller('InternalRequestController', function ($controller, $scope, ApiRe

InternalRequestsService.pushFeatureRequest($scope.featureRequestToPush).then(function (res) {
$scope.cancelPushFeatureRequest();
}).catch(function() {
$scope.cancelPushFeatureRequest();
});
};

Expand Down

0 comments on commit ca9a214

Please sign in to comment.