Skip to content

Fix JS error when navigating to last article with keyboard#7957

Merged
Alkarex merged 1 commit intoFreshRSS:edgefrom
Inverle:next-article-js-fix
Sep 12, 2025
Merged

Fix JS error when navigating to last article with keyboard#7957
Alkarex merged 1 commit intoFreshRSS:edgefrom
Inverle:next-article-js-fix

Conversation

@Inverle
Copy link
Member

@Inverle Inverle commented Sep 12, 2025

This error would print in the console if navigating to last article with J or K key:

image

To reproduce the bug:

  1. Select unread + read view, while having all articles marked as read
  2. Mark two as unread and go to unread only view
  3. Navigate with either J or K until you go past the last article or before first article
  4. See error in console and no navigation with first_feed() or last_feed()

note: I'm not sure if the fix is what the expected behavior is supposed to be

@Frenzie
Copy link
Member

Frenzie commented Sep 12, 2025

I'd think the expected behavior is the next category when applicable and otherwise nothing. (Which I think is broadly what already happens?)

@Inverle
Copy link
Member Author

Inverle commented Sep 12, 2025

Which I think is broadly what already happens?

Does not due to the error as far as I can tell

@Frenzie
Copy link
Member

Frenzie commented Sep 12, 2025

I meant in all other scenarios, hence why it should conform.

@Alkarex Alkarex added this to the 1.27.1 milestone Sep 12, 2025
@Alkarex Alkarex merged commit 0833591 into FreshRSS:edge Sep 12, 2025
1 check passed
@Inverle Inverle deleted the next-article-js-fix branch September 12, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants