1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix some pointed by eslint

This commit is contained in:
asmsuechan
2017-10-12 10:01:38 +09:00
parent d915d19425
commit c33da0cf8e

View File

@@ -441,7 +441,6 @@ class NoteList extends React.Component {
let note = this.notes[targetIndex]
const label = note.isPinned ? 'Remove pin' : 'Pin to Top'
let menu = new Menu()
menu.append(new MenuItem({
label: label,
@@ -482,7 +481,7 @@ class NoteList extends React.Component {
return note != null && note.storage + '-' + note.key === uniqueKey
})
let note = this.notes[targetIndex]
note.isPinned = note.isPinned ? false : true
note.isPinned = !note.isPinned
dataApi
.updateNote(note.storage, note.key, note)