Skip to content

Commit 8b47473

Browse files
committed
Simplify vscode mcq message
Remove the question description from the McqQuestion payload as it is not used.
1 parent 6010f1a commit 8b47473

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

src/commons/application/Application.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ const Application: React.FC = () => {
131131
dispatch(
132132
WorkspaceActions.showMcqPane(
133133
message.workspaceLocation,
134-
message.question,
135134
message.options
136135
)
137136
);

src/commons/assessmentWorkspace/AssessmentWorkspace.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ const AssessmentWorkspace: React.FC<AssessmentWorkspaceProps> = props => {
405405
`assessment${assessment.id}`,
406406
props.questionId,
407407
chapter,
408-
mcqQuestionData.content,
409408
mcqQuestionData.choices.map(choice => choice.content)
410409
)
411410
);

src/commons/workspace/WorkspaceActions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,8 @@ const newActions = createActions('workspace', {
240240
workspaceLocation: WorkspaceLocation,
241241
storyEnv?: string
242242
) => ({ errorMsg, workspaceLocation, storyEnv }),
243-
showMcqPane: (workspaceLocation: WorkspaceLocation, question: string, options: string[]) => ({
243+
showMcqPane: (workspaceLocation: WorkspaceLocation, options: string[]) => ({
244244
workspaceLocation,
245-
question,
246245
options
247246
}),
248247
toggleUsingCse: (usingCse: boolean, workspaceLocation: WorkspaceLocationsWithTools) => ({

src/features/vscode/messages.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ const Messages = createMessages({
6060
assessmentName: string,
6161
questionId: number,
6262
chapter: number,
63-
question: string,
6463
options: string[]
6564
) => ({
6665
workspaceLocation,
6766
assessmentName,
6867
questionId,
6968
chapter,
70-
question,
7169
options
7270
}),
7371
McqAnswer: (

0 commit comments

Comments
 (0)