Skip to content

Commit

Permalink
fix: Use correct name for project deletions.
Browse files Browse the repository at this point in the history
Using the name of the repo will lead to a 404 if the repo was renamed.
When removing a project through the project properties, the project name
was already used instead.
  • Loading branch information
oliversalzburg authored and Ilya Radchenko committed Mar 21, 2017
1 parent 6a82692 commit dc4ccb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/projects/controllers/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function ($scope) {
repo.really_remove = 'removing';
repo.adding = false;

$.ajax(`/${repo.name}/`, {
$.ajax(`/${repo.project.name}/`, {
type: 'DELETE',
success: function () {
repo.project = null;
Expand Down

0 comments on commit dc4ccb2

Please sign in to comment.