From 4a167aa3d7dc4c07d5347c2f6de1564be7d01d66 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 15 Oct 2018 12:11:52 +0200 Subject: [PATCH] update only if tags' length has been changed --- browser/main/Detail/MarkdownNoteDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index 59c62a41..1e2c4424 100755 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -65,7 +65,7 @@ class MarkdownNoteDetail extends React.Component { } componentWillReceiveProps (nextProps) { - if (!this.state.isMovingNote && (nextProps.note.key !== this.props.note.key || nextProps.note.updatedAt > this.props.note.updatedAt)) { + if (!this.state.isMovingNote && (nextProps.note.key !== this.props.note.key || nextProps.note.tags.length !== this.props.note.tags.length)) { if (this.saveQueue != null) this.saveNow() this.setState({ note: Object.assign({}, nextProps.note)