From d24bcb7f8646acd56878c9b22ceec705793c882c Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Thu, 4 May 2017 10:15:22 -0700 Subject: [PATCH] Change to template literal --- 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 b90de31e..6bd76c1f 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -381,7 +381,7 @@ class NoteList extends React.Component { } const targetIndex = _.findIndex(this.notes, (note) => { - return note != null && note.storage + '-' + note.key === location.query.key + return note !== null && `${note.storage}-${note.key}` === location.query.key }) const storageKey = this.notes[targetIndex].storage @@ -407,7 +407,7 @@ class NoteList extends React.Component { }) hashHistory.push({ pathname: location.pathname, - query: {key: note.storage + '-' + note.key} + query: {key: `${note.storage}-${note.key}`} }) }) })