fix: cannot open problem editor because of typeerror undefined (#193)

* fix: cannot open problem editor because of typeerror

* fix: snapshots
This commit is contained in:
Jesper Hodge
2023-01-12 12:25:18 -05:00
committed by GitHub
parent 6d823e4e7c
commit 574c2cc76a
2 changed files with 5 additions and 9 deletions

View File

@@ -1,10 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`EditorProblemView component renders raw editor 1`] = `
<EditorContainer
<injectIntl(ShimmedIntlComponent)
getContent={[Function]}
onClose={null}
validateEntry={null}
>
<Container
fluid={true}
@@ -32,14 +30,12 @@ exports[`EditorProblemView component renders raw editor 1`] = `
</Component>
</Row>
</Container>
</EditorContainer>
</injectIntl(ShimmedIntlComponent)>
`;
exports[`EditorProblemView component renders simple view 1`] = `
<EditorContainer
<injectIntl(ShimmedIntlComponent)
getContent={[Function]}
onClose={null}
validateEntry={null}
>
<Container
fluid={true}
@@ -62,5 +58,5 @@ exports[`EditorProblemView component renders simple view 1`] = `
</Component>
</Row>
</Container>
</EditorContainer>
</injectIntl(ShimmedIntlComponent)>
`;

View File

@@ -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';