mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-11-24 00:33:48 +01:00
Set title empty if its null
This commit is contained in:
parent
315db62d78
commit
b1bcb5388d
@ -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 } />
|
||||
|
Loading…
Reference in New Issue
Block a user