Merged in bugfix/set_title_correctly (pull request #395)

Page title is now set correctly
This commit is contained in:
Eduard Heimbuch
2020-01-23 14:12:57 +00:00
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Subversion revision 0 leads to error
- Create mock subject to satisfy legman
- Multiple versions of hibernate-validator caused problems when starting from plugins
- Page title is now set correctly
## 2.0.0-rc1 - 2019-12-02
### Added

View File

@@ -28,6 +28,13 @@ const PageActionContainer = styled.div`
`;
export default class Page extends React.Component<Props> {
componentDidUpdate() {
const { title } = this.props;
if (title && title !== document.title) {
document.title = title;
}
}
render() {
const { error } = this.props;
return (