1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #1483 from andyklimczak/delete-note

Fix permanently deleting note
This commit is contained in:
Junyoung Choi (Sai)
2018-02-10 18:47:41 +09:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -198,8 +198,9 @@ class MarkdownNoteDetail extends React.Component {
noteKey: data.noteKey
})
}
ee.once('list:moved', dispatchHandler)
ee.once('list:next', dispatchHandler)
})
.then(() => ee.emit('list:next'))
}
} else {
if (confirmDeletion()) {

View File

@@ -191,8 +191,9 @@ class SnippetNoteDetail extends React.Component {
noteKey: data.noteKey
})
}
ee.once('list:moved', dispatchHandler)
ee.once('list:next', dispatchHandler)
})
.then(() => ee.emit('list:next'))
}
} else {
if (confirmDeletion()) {