From 5433abddaf48cf97c7c5f0785ea844b38257deb4 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Wed, 11 Oct 2017 13:39:12 +0900 Subject: [PATCH] Remove console.log --- browser/main/NoteList/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 80932652..98405a62 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -435,7 +435,6 @@ class NoteList extends React.Component { return note != null && uniqueKey === `${note.storage}-${note.key}` }) let note = this.notes[targetIndex] - console.log(note) const label = note.isPinned ? 'Remove pin' : 'Pin to Top' let menu = new Menu() @@ -475,13 +474,7 @@ class NoteList extends React.Component { return note != null && note.storage + '-' + note.key === uniqueKey }) let note = this.notes[targetIndex] - if (note.isPinned) { - note.isPinned = false - console.log('unpinned') - } else { - note.isPinned = true - console.log('pinned') - } + note.isPinned = note.isPinned ? false : true dataApi .updateNote(note.storage, note.key, note)