faulttttttttttttttt

This commit is contained in:
insanity 2017-08-28 18:56:03 +09:00
parent e3e1b8f411
commit b6a028c6d8

View File

@ -43,7 +43,8 @@ export class TitleBar extends React.Component<Props, State> {
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();