From e86e0a2f710d28c26a7457ab3fd35c88d2f937b1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 10 Mar 2021 14:00:54 +0100 Subject: fix nav. thinking about peaks --- animism-align/frontend/app/views/editor/editor.gate.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app') diff --git a/animism-align/frontend/app/views/editor/editor.gate.js b/animism-align/frontend/app/views/editor/editor.gate.js index 87ca367..1524b53 100644 --- a/animism-align/frontend/app/views/editor/editor.gate.js +++ b/animism-align/frontend/app/views/editor/editor.gate.js @@ -15,7 +15,11 @@ class EditorGate extends Component { } componentDidMount() { - this.load() + if (parseInt(this.props.episode_id) === parseInt(this.props.current_episode_id)) { + this.setState({ ready: true }) + } else { + this.load() + } } componentDidUpdate(prevProps) { -- cgit v1.2.3-70-g09d2