From 9a137573a7b3d21cce0cd25ccc5a044ac6bd069e Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Mon, 27 Jul 2020 12:42:17 +0200 Subject: [PATCH] fix: only show description in target editor --- .../Challenges/classic/MultifileEditor.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 (