mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-06-20 09:37:45 +02: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!`;
|
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 (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<TopBar mainView={ appState.mainView } switchMainViewFunction={ appState.switchMainView } title={ title } />
|
<TopBar mainView={ appState.mainView } switchMainViewFunction={ appState.switchMainView } title={ title } />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user