1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add context menu to delete tag

This commit is contained in:
Baptiste Augrain
2018-10-15 08:09:50 +02:00
parent 71ae42056f
commit 1da477d1d1
5 changed files with 64 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class MarkdownNoteDetail extends React.Component {
}
componentWillReceiveProps (nextProps) {
if (nextProps.note.key !== this.props.note.key && !this.state.isMovingNote) {
if (!this.state.isMovingNote && (nextProps.note.key !== this.props.note.key || nextProps.note.updatedAt > this.props.note.updatedAt)) {
if (this.saveQueue != null) this.saveNow()
this.setState({
note: Object.assign({}, nextProps.note)