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

Remove console.log

This commit is contained in:
asmsuechan
2017-10-11 13:39:12 +09:00
parent 0ccb465288
commit 5433abddaf

View File

@@ -435,7 +435,6 @@ class NoteList extends React.Component {
return note != null && uniqueKey === `${note.storage}-${note.key}` return note != null && uniqueKey === `${note.storage}-${note.key}`
}) })
let note = this.notes[targetIndex] let note = this.notes[targetIndex]
console.log(note)
const label = note.isPinned ? 'Remove pin' : 'Pin to Top' const label = note.isPinned ? 'Remove pin' : 'Pin to Top'
let menu = new Menu() let menu = new Menu()
@@ -475,13 +474,7 @@ class NoteList extends React.Component {
return note != null && note.storage + '-' + note.key === uniqueKey return note != null && note.storage + '-' + note.key === uniqueKey
}) })
let note = this.notes[targetIndex] let note = this.notes[targetIndex]
if (note.isPinned) { note.isPinned = note.isPinned ? false : true
note.isPinned = false
console.log('unpinned')
} else {
note.isPinned = true
console.log('pinned')
}
dataApi dataApi
.updateNote(note.storage, note.key, note) .updateNote(note.storage, note.key, note)