From 574c2cc76a4c3cf54de72f28aab061b2e51f1807 Mon Sep 17 00:00:00 2001
From: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com>
Date: Thu, 12 Jan 2023 12:25:18 -0500
Subject: [PATCH] fix: cannot open problem editor because of typeerror
undefined (#193)
* fix: cannot open problem editor because of typeerror
* fix: snapshots
---
.../__snapshots__/index.test.jsx.snap | 12 ++++--------
.../components/EditProblemView/index.jsx | 2 +-
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap b/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap
index 2266b9fe0..005ba0de5 100644
--- a/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap
+++ b/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap
@@ -1,10 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`EditorProblemView component renders raw editor 1`] = `
-
-
+
`;
exports[`EditorProblemView component renders simple view 1`] = `
-
-
+
`;
diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx b/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx
index e115c8724..710c3e635 100644
--- a/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx
+++ b/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx
@@ -6,7 +6,7 @@ import { Col, Container, Row } from '@edx/paragon';
import AnswerWidget from './AnswerWidget';
import SettingsWidget from './SettingsWidget';
import QuestionWidget from './QuestionWidget';
-import { EditorContainer } from '../../../EditorContainer';
+import EditorContainer from '../../../EditorContainer';
import { selectors } from '../../../../data/redux';
import RawEditor from '../../../../sharedComponents/RawEditor';
import { ProblemTypeKeys } from '../../../../data/constants/problem';