Update widget title on edit.

pull/21833/head
Richard Lewis 2017-12-13 10:14:26 +00:00
parent eae73e584c
commit c739269777
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ export default React.createClass({
this.setState({
loading: true,
});
} else if (nextProps.widgetPageTitle !== this.props.widgetPageTitle) {
this.setState({
widgetPageTitle: nextProps.widgetPageTitle,
});
}
},