diff --git a/src/html/js/entries.js b/src/html/js/entries.js index 0bc0157..a7038f6 100644 --- a/src/html/js/entries.js +++ b/src/html/js/entries.js @@ -180,10 +180,8 @@ var ListViewModel = function() { self.loadMonths = function(account){ $.post("api/entry.php", {action: "get_months", account: account.id}).success(function (result) { self.months(result); - - if(! self.month()) { - self.month(result[result.length - 1]); - } + + self.month(result[result.length - 1]); }); };