From 334a361e792ae06d4b5e87b62094fc5925379257 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Mar 2021 09:50:58 +0300 Subject: [PATCH] don't try to j/k move to nonexistant feed --- js/App.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/App.js b/js/App.js index a9da8a1c0..ecf8c46c1 100644 --- a/js/App.js +++ b/js/App.js @@ -941,13 +941,15 @@ const App = { const [feed, is_cat] = Feeds.getNextFeed( Feeds.getActive(), Feeds.activeIsCat()); - Feeds.open({feed: feed, is_cat: is_cat, delayed: true}) + if (feed !== false) + Feeds.open({feed: feed, is_cat: is_cat, delayed: true}) }; this.hotkey_actions["prev_feed"] = () => { const [feed, is_cat] = Feeds.getPreviousFeed( Feeds.getActive(), Feeds.activeIsCat()); - Feeds.open({feed: feed, is_cat: is_cat, delayed: true}) + if (feed !== false) + Feeds.open({feed: feed, is_cat: is_cat, delayed: true}) }; this.hotkey_actions["next_article_or_scroll"] = (event) => { if (this.isCombinedMode())