From 70788697da48eb3da37466dc24addc044cc21f85 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Tue, 21 Jan 2020 15:18:37 +0100 Subject: [PATCH] Check if title exists --- scm-ui/ui-components/src/layout/Page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/layout/Page.tsx b/scm-ui/ui-components/src/layout/Page.tsx index fe8ace9253..128337fd73 100644 --- a/scm-ui/ui-components/src/layout/Page.tsx +++ b/scm-ui/ui-components/src/layout/Page.tsx @@ -30,7 +30,7 @@ const PageActionContainer = styled.div` export default class Page extends React.Component { componentDidUpdate() { const { title } = this.props; - if (document.title !== title) { + if (title && title !== document.title) { document.title = title; } }