Skip to content

Commit fa717a3

Browse files
committed
Merged branch master into master
2 parents 3b7ed5f + b3d9bee commit fa717a3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

browser/main/NoteList/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ class NoteList extends React.Component {
107107
})
108108

109109
if (targetIndex === this.notes.length - 1) {
110-
return
110+
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
111115
}
112-
targetIndex++
113-
if (targetIndex < 0) targetIndex = 0
114-
else if (targetIndex > this.notes.length - 1) targetIndex === this.notes.length - 1
115116

116117
router.push({
117118
pathname: location.pathname,

0 commit comments

Comments
 (0)