mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
Check if title exists
This commit is contained in:
@@ -30,7 +30,7 @@ const PageActionContainer = styled.div`
|
|||||||
export default class Page extends React.Component<Props> {
|
export default class Page extends React.Component<Props> {
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
const { title } = this.props;
|
const { title } = this.props;
|
||||||
if (document.title !== title) {
|
if (title && title !== document.title) {
|
||||||
document.title = title;
|
document.title = title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user