From 2ed5a79e64f55cda11d99994af06dedbb9d6b823 Mon Sep 17 00:00:00 2001 From: wn_ Date: Fri, 26 Mar 2021 10:00:36 +0000 Subject: [PATCH] Fix automatically showing next feed on catchup --- js/Feeds.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Feeds.js b/js/Feeds.js index 818973542..c442223a0 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -479,10 +479,10 @@ const Feeds = { // only select next unread feed if catching up entirely (as opposed to last week etc) if (show_next_feed && !mode) { - const nuf = this.getNextUnread(feed, is_cat); + const [next_feed, next_is_cat] = this.getNextUnread(feed, is_cat); - if (nuf) { - this.open({feed: nuf, is_cat: is_cat}); + if (next_feed !== false) { + this.open({feed: next_feed, is_cat: next_is_cat}); } } else if (feed == this.getActive() && is_cat == this.activeIsCat()) { this.reloadCurrent();