chore: only show sidebar once docs have loaded

This commit is contained in:
Fabio Berger 2018-10-13 17:11:47 +01:00
parent d85daab967
commit 9b1f765ced

View File

@ -91,7 +91,9 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> {
sourceUrl={sourceUrl}
/>
);
const sidebar = (
const sidebar = _.isUndefined(this.state.docAgnosticFormat) ? (
<div />
) : (
<NestedSidebarMenu sidebarHeader={this._renderSidebarHeader()} sectionNameToLinks={sectionNameToLinks} />
);
return (