mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fix by review
refs: https://github.com/BoostIO/Boostnote/pull/245#pullrequestreview-17800372
This commit is contained in:
@@ -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(), {
|
||||
|
||||
Reference in New Issue
Block a user