Skip to content

Commit d219424

Browse files
committed
Remove unnecessary check
1 parent ec6c489 commit d219424

File tree

1 file changed

+0
-9
lines changed
  • packages/app/src/app/components/CodeEditor/VSCode

1 file changed

+0
-9
lines changed

packages/app/src/app/components/CodeEditor/VSCode/index.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ class MonacoEditor extends React.Component<Props> implements Editor {
124124
this.resizeEditorInstantly();
125125
}
126126

127-
if (
128-
this.props.width &&
129-
this.props.height &&
130-
(this.props.width !== nextProps.width ||
131-
this.props.height !== nextProps.height)
132-
) {
133-
this.resizeEditorInstantly();
134-
}
135-
136127
const activeEditor = this.editor && this.editor.getActiveCodeEditor();
137128

138129
if (this.props.readOnly !== nextProps.readOnly && activeEditor) {

0 commit comments

Comments
 (0)