diff --git a/static/js/app.js b/static/js/app.js index ce9ce5e4b..03ca9d383 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1795,11 +1795,14 @@ quayApp.directive('prototypeManager', function () { }; var data = { - 'activating_user': $scope.newForWholeOrg ? null : $scope.activatingForNew, 'delegate': $scope.delegateForNew, 'role': $scope.newRole }; + if (!$scope.newForWholeOrg) { + data['activating_user'] = $scope.activatingForNew; + } + ApiService.createOrganizationPrototypePermission(data, params).then(function(resp) { $scope.prototypes.push(resp); $scope.loading = false;