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

Update widget title on edit.
pull/21833/head
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
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,
});
}
},