Skip to content

Commit d69fd12

Browse files
authored
Merge pull request #1920 from samlanning/incorrect-state-property-reference
Fix mis-referenced state properties
2 parents 0bdcfa6 + 4fd01b4 commit d69fd12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

browser/main/Detail/MarkdownNoteDetail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MarkdownNoteDetail extends React.Component {
5858
}
5959

6060
componentWillReceiveProps (nextProps) {
61-
if (nextProps.note.key !== this.props.note.key && !this.isMovingNote) {
61+
if (nextProps.note.key !== this.props.note.key && !this.state.isMovingNote) {
6262
if (this.saveQueue != null) this.saveNow()
6363
this.setState({
6464
note: Object.assign({}, nextProps.note)

browser/main/Detail/SnippetNoteDetail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SnippetNoteDetail extends React.Component {
6868
}
6969

7070
componentWillReceiveProps (nextProps) {
71-
if (nextProps.note.key !== this.props.note.key && !this.isMovingNote) {
71+
if (nextProps.note.key !== this.props.note.key && !this.state.isMovingNote) {
7272
if (this.saveQueue != null) this.saveNow()
7373
const nextNote = Object.assign({
7474
description: ''

0 commit comments

Comments
 (0)