Skip to content

Commit c3aff9f

Browse files
committed
Fix undefined prop error
1 parent 2fc613b commit c3aff9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,12 @@ PreviewFrame.propTypes = {
389389
expandConsole: PropTypes.func.isRequired,
390390
cmController: PropTypes.shape({
391391
getContent: PropTypes.func
392-
}).isRequired
392+
})
393393
};
394394

395395
PreviewFrame.defaultProps = {
396-
fullView: false
396+
fullView: false,
397+
cmController: {}
397398
};
398399

399400
export default PreviewFrame;

0 commit comments

Comments
 (0)