diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 21:03:36 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 21:03:36 +0200 |
| commit | ebb806cec4af5ccdad795513335c22769cbd7aff (patch) | |
| tree | d7fb55b72d3bee7eb13d3e89680947ebd5584787 /frontend/views/graph/graph.container.js | |
| parent | 4eea589bd4cdd91294f14943bd90cd3f51f6ec2f (diff) | |
handle changing type more robustly
Diffstat (limited to 'frontend/views/graph/graph.container.js')
| -rw-r--r-- | frontend/views/graph/graph.container.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/frontend/views/graph/graph.container.js b/frontend/views/graph/graph.container.js index 4c7b7fc..5c6e3b5 100644 --- a/frontend/views/graph/graph.container.js +++ b/frontend/views/graph/graph.container.js @@ -43,7 +43,7 @@ class GraphContainer extends Component { }) } render() { - if (!this.shouldShowGraph()) return null + if (!this.shouldShowGraph()) return <div /> if (!this.props.graph.show.res || this.props.graph.show.loading) { return ( <div> @@ -61,8 +61,10 @@ class GraphContainer extends Component { <GraphHeader /> <div className='body'> <GraphEditor /> - {this.props.graph.editor.addingPage && <PageNew />} - {this.props.graph.editor.editingPage && <PageEdit />} + <div className='sidebar'> + {this.props.graph.editor.addingPage && <PageNew />} + {this.props.graph.editor.editingPage && <PageEdit />} + </div> </div> </div> ) |
