From 911ce7572f0b461e8ca2b19af38a8788ddd2148b Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Sat, 21 Jan 2017 15:44:48 +0900 Subject: [PATCH] Fix by review refs: https://github.com/BoostIO/Boostnote/pull/245#pullrequestreview-17800372 --- browser/main/NoteList/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index f9604469..82c0bbc3 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -312,8 +312,8 @@ class NoteList extends React.Component { alertIfSnippet() { let { location } = this.props - let targetIndex = _.findIndex(this.notes, (note) => { - return note.storage + '-' + note.key === location.query.key + const targetIndex = _.findIndex(this.notes, (note) => { + return `${note.storage}-${note.key}` === location.query.key }) if (this.notes[targetIndex].type === 'SNIPPET_NOTE') { dialog.showMessageBox(remote.getCurrentWindow(), {