From 21d5de3c16e6abff3892ec1c6346cd56781a4afe Mon Sep 17 00:00:00 2001 From: Chow En Rong <53928333+chownces@users.noreply.github.com> Date: Fri, 23 Jul 2021 11:07:09 +0800 Subject: [PATCH] Fix AssessmentWorkspace syntax highlighting bug --- src/commons/assessmentWorkspace/AssessmentWorkspace.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commons/assessmentWorkspace/AssessmentWorkspace.tsx b/src/commons/assessmentWorkspace/AssessmentWorkspace.tsx index 5d49d01593..b3b1677e4e 100644 --- a/src/commons/assessmentWorkspace/AssessmentWorkspace.tsx +++ b/src/commons/assessmentWorkspace/AssessmentWorkspace.tsx @@ -757,6 +757,9 @@ const AssessmentWorkspace: React.FC = props => { ? { editorSessionId: '', editorValue: props.editorValue!, + sourceChapter: question.library.chapter || 4, + sourceVariant: 'default' as Variant, + externalLibrary: question.library.external.name || 'NONE', handleDeclarationNavigate: props.handleDeclarationNavigate, handleEditorEval: handleEval, handleEditorValueChange: props.handleEditorValueChange,