diff --git a/couchpotato/core/plugins/category/static/category.js b/couchpotato/core/plugins/category/static/category.js index 29a5a458..168b70de 100644 --- a/couchpotato/core/plugins/category/static/category.js +++ b/couchpotato/core/plugins/category/static/category.js @@ -271,6 +271,11 @@ var Category = new Class({ del: function(){ var self = this; + + if(self.data.label == undefined){ + self.el.destroy(); + return; + } var label = self.el.getElement('.category_label input').get('value'); var qObj = new Question('Are you sure you want to delete "'+label+'"?', '', [{