Page title is now set correctly

This commit is contained in:
Florian Scholdei
2020-01-21 15:05:15 +01:00
parent f12b25bd1f
commit 14d5d3ad06
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 (document.title !== title) {
document.title = title;
}
}
render() {
const { error } = this.props;
return (