mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fix linking to other notes
This commit is contained in:
@@ -235,18 +235,8 @@ class NoteList extends React.Component {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const { router } = this.context
|
const selectedNoteKeys = [noteHash]
|
||||||
const { location } = this.props
|
this.focusNote(selectedNoteKeys, noteHash)
|
||||||
|
|
||||||
let targetIndex = this.getTargetIndex()
|
|
||||||
|
|
||||||
if (targetIndex < 0) targetIndex = 0
|
|
||||||
|
|
||||||
const selectedNoteKeys = []
|
|
||||||
const nextNoteKey = this.getNoteKeyFromTargetIndex(targetIndex)
|
|
||||||
selectedNoteKeys.push(nextNoteKey)
|
|
||||||
|
|
||||||
this.focusNote(selectedNoteKeys, nextNoteKey)
|
|
||||||
|
|
||||||
ee.emit('list:moved')
|
ee.emit('list:moved')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user