summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/editor.gate.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-10 14:00:54 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-10 14:00:54 +0100
commite86e0a2f710d28c26a7457ab3fd35c88d2f937b1 (patch)
tree55a4225dca892bbf509f37584e90a96fb4db49f6 /animism-align/frontend/app/views/editor/editor.gate.js
parent0e849395aab06b3c05b609740ebc94cf3a5cd258 (diff)
fix nav. thinking about peaks
Diffstat (limited to 'animism-align/frontend/app/views/editor/editor.gate.js')
-rw-r--r--animism-align/frontend/app/views/editor/editor.gate.js6
1 files changed, 5 insertions, 1 deletions
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) {