mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +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> {
|
||||
componentDidUpdate() {
|
||||
const { title } = this.props;
|
||||
if (document.title !== title) {
|
||||
if (title && title !== document.title) {
|
||||
document.title = title;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user