Skip to content

Commit

Permalink
Issue 58: Continue to call the resetManageOrganization() in a way tha…
Browse files Browse the repository at this point in the history
…t does something.

The `OrganizationRepo.listen(ApiResponseActions.READ,...` call was removed for being a no-op.
Even older code suggests that this should in fact be doing something.
Add the function call back, but this time add the selected organization if one exists so that the function is not a no-op.

Whether or not this change fixes or breaks something is unclear.
Be wary of regressions.
Be hopeful of bonus bug fixes.
  • Loading branch information
kaladay committed Apr 23, 2024
1 parent 17f8d15 commit b393c6f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ vireo.controller("OrganizationManagementController", function ($controller, $loc
$scope.resetWorkflowSteps();
}
});

OrganizationRepo.listen(ApiResponseActions.READ, function (res) {
var resObj = !!res && !!res.body ? angular.fromJson(res.body) : {};
if (!!resObj && !!resObj.meta && !!resObj.meta.status && resObj.meta.status === 'SUCCESS') {
$scope.resetManageOrganization($scope.getSelectedOrganization());
}
});
});

$scope.acceptsSubmissions = [{
Expand Down

0 comments on commit b393c6f

Please sign in to comment.