We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b7ed5f + b3d9bee commit fa717a3Copy full SHA for fa717a3
1 file changed
browser/main/NoteList/index.js
@@ -107,11 +107,12 @@ class NoteList extends React.Component {
107
})
108
109
if (targetIndex === this.notes.length - 1) {
110
- return
+ targetIndex = 0
111
+ } else {
112
+ targetIndex++
113
+ if (targetIndex < 0) targetIndex = 0
114
+ else if (targetIndex > this.notes.length - 1) targetIndex === this.notes.length - 1
115
}
- targetIndex++
- if (targetIndex < 0) targetIndex = 0
- else if (targetIndex > this.notes.length - 1) targetIndex === this.notes.length - 1
116
117
router.push({
118
pathname: location.pathname,
0 commit comments