From ebb806cec4af5ccdad795513335c22769cbd7aff Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 3 Jun 2020 21:03:36 +0200 Subject: handle changing type more robustly --- frontend/views/graph/graph.container.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'frontend/views/graph/graph.container.js') 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
if (!this.props.graph.show.res || this.props.graph.show.loading) { return (
@@ -61,8 +61,10 @@ class GraphContainer extends Component {
- {this.props.graph.editor.addingPage && } - {this.props.graph.editor.editingPage && } +
+ {this.props.graph.editor.addingPage && } + {this.props.graph.editor.editingPage && } +
) -- cgit v1.2.3-70-g09d2