summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js
index bc9a9b7b0..86aa989db 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -860,7 +860,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
feed = this._feedModel.getById(feedId);
newestItemId = this._newestItem.getId();
- if (angular.isDefined(feed) && angular.isDefined(newestItemId)) {
+ if (angular.isDefined(feed) && newestItemId !== 0) {
feed.unreadCount = 0;
this._persistence.setFeedRead(feedId, newestItemId);
_ref = this._itemModel.getAll();