Skip to content

Commit

Permalink
fix new playlist save
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Mar 3, 2015
1 parent 54533a9 commit aadcb36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ angular.module('playlistsApp').controller('PlaylistsController', [

var update = false;
// if we rename the current playlist, update it only
if (listname != $scope.playlist.selected.title) {
if (listname != $scope.playlist.selected.title && $scope.playlist.selected.id !== undefined) {
update = true;
}

Expand Down

0 comments on commit aadcb36

Please sign in to comment.