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