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(), {