don't scroll to entry if it's already selected (#1108)

This commit is contained in:
Athou
2023-07-03 19:35:41 +02:00
parent 922346bef6
commit 3edb8a3ee2

View File

@@ -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,