Set title empty if its null

This commit is contained in:
Johannes Zillmann 2018-04-25 23:47:03 +02:00
parent 315db62d78
commit b1bcb5388d

View File

@ -38,7 +38,7 @@ export default class App extends React.Component {
throw `View ${this.props.appState.mainView} not supported!`;
}
const title = appState.metadata ? appState.metadata.title : '';
const title = appState.metadata && appState.metadata.title ? appState.metadata.title : '';
return (
<div>
<TopBar mainView={ appState.mainView } switchMainViewFunction={ appState.switchMainView } title={ title } />