Merge pull request #1663 from matrix-org/rxl881/titleRefresh

Update widget title on edit.
This commit is contained in:
Richard Lewis 2017-12-13 10:15:31 +00:00 committed by GitHub
commit 41005f5bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,
});
}
},