Fix redirect in clone project modal

This commit is contained in:
James Allen 2017-06-05 13:33:32 +01:00
parent d7981fd2d4
commit cb1745a1e6

View file

@ -24,7 +24,7 @@ define [
$scope.state.error = false
cloneProject($scope.inputs.projectName)
.success (data) ->
window.location = "/project/#{data.data.project_id}"
window.location = "/project/#{data.project_id}"
.error (body, statusCode) ->
$scope.state.inflight = false
if statusCode == 400