diff --git a/client/src/templates/Challenges/classic/MultifileEditor.js b/client/src/templates/Challenges/classic/MultifileEditor.js index 6c231ccf9c..3aab3e74ec 100644 --- a/client/src/templates/Challenges/classic/MultifileEditor.js +++ b/client/src/templates/Challenges/classic/MultifileEditor.js @@ -138,7 +138,6 @@ class MultifileEditor extends Component { }; const { challengeFiles } = this.props; - const targetEditor = getTargetEditor(challengeFiles); this.state = { @@ -207,6 +206,7 @@ class MultifileEditor extends Component { // TODO: tabs should be dynamically created from the challengeFiles // TODO: the tabs mess up the rendering (scroll doesn't work properly and // the in-editor description) + const targetEditor = getTargetEditor(challengeFiles); return (