Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Update edit post form using recently received props
Browse files Browse the repository at this point in the history
Fix impossibility to manage tags and save not edited post after transition to 'post's edit' page from 'post's view' page.
  • Loading branch information
artkravchenko committed Nov 20, 2016
1 parent 5f86b0b commit 074ae0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/edit-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class EditPost extends React.Component {

componentWillReceiveProps(nextProps) {
if (!this.state.upToDate) {
this.update(nextProps.post, this.props.id);
this.update(nextProps.post, nextProps.id);
}
}

Expand Down

0 comments on commit 074ae0e

Please sign in to comment.