From b6a028c6d88d683c7a314acf1914da73c286ff8c Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 28 Aug 2017 18:56:03 +0900 Subject: [PATCH] faulttttttttttttttt --- src/ts/@overflow/app/views/layout/TitleBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ts/@overflow/app/views/layout/TitleBar.tsx b/src/ts/@overflow/app/views/layout/TitleBar.tsx index d4243d6..bca1e7a 100644 --- a/src/ts/@overflow/app/views/layout/TitleBar.tsx +++ b/src/ts/@overflow/app/views/layout/TitleBar.tsx @@ -43,7 +43,8 @@ export class TitleBar extends React.Component { public componentWillUpdate(nextProps: Props, nextState: State): void { if (nextProps !== this.props) { - if (!this.props.history.location.pathname) { + + if (!this.props.history) { return; } let last = this.props.history.location.pathname.split('/').pop().toLowerCase();