Skip to content

Commit

Permalink
don't scroll to entry if it's already selected (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Jul 4, 2023
1 parent 922346b commit 3edb8a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commafeed-client/src/components/content/FeedEntries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export function FeedEntries() {

const bodyClicked = (entry: ExpendableEntry) => {
if (viewMode !== "expanded") return

// entry is already selected
if (entry.id === selectedEntryId) return

dispatch(
selectEntry({
entry,
Expand Down

0 comments on commit 3edb8a3

Please sign in to comment.