mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +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() {
|
alertIfSnippet() {
|
||||||
let { location } = this.props
|
let { location } = this.props
|
||||||
let targetIndex = _.findIndex(this.notes, (note) => {
|
const targetIndex = _.findIndex(this.notes, (note) => {
|
||||||
return note.storage + '-' + note.key === location.query.key
|
return `${note.storage}-${note.key}` === location.query.key
|
||||||
})
|
})
|
||||||
if (this.notes[targetIndex].type === 'SNIPPET_NOTE') {
|
if (this.notes[targetIndex].type === 'SNIPPET_NOTE') {
|
||||||
dialog.showMessageBox(remote.getCurrentWindow(), {
|
dialog.showMessageBox(remote.getCurrentWindow(), {
|
||||||
|
|||||||
Reference in New Issue
Block a user