forked from Archives/Athou_commafeed
don't scroll to entry if it's already selected (#1108)
This commit is contained in:
@@ -71,6 +71,10 @@ export function FeedEntries() {
|
|||||||
|
|
||||||
const bodyClicked = (entry: ExpendableEntry) => {
|
const bodyClicked = (entry: ExpendableEntry) => {
|
||||||
if (viewMode !== "expanded") return
|
if (viewMode !== "expanded") return
|
||||||
|
|
||||||
|
// entry is already selected
|
||||||
|
if (entry.id === selectedEntryId) return
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
selectEntry({
|
selectEntry({
|
||||||
entry,
|
entry,
|
||||||
|
|||||||
Reference in New Issue
Block a user