diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index f30454ac..c8aef247 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -53,6 +53,9 @@ function($scope, FeedService, CategoryService) { }; $scope.save = function() { + if (!$scope.sub.categoryId) { + return; + } FeedService.subscribe($scope.sub, function() { CategoryService.init(); });