Skip to content

Commit 4e0aa64

Browse files
committed
Fix double render for resize
1 parent e53525c commit 4e0aa64

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ class MonacoEditor extends React.Component<Props> implements Editor {
122122
this.props.height !== nextProps.height
123123
) {
124124
this.resizeEditorInstantly();
125-
126-
return true;
127125
}
128126

129127
if (
@@ -133,8 +131,6 @@ class MonacoEditor extends React.Component<Props> implements Editor {
133131
this.props.height !== nextProps.height)
134132
) {
135133
this.resizeEditorInstantly();
136-
137-
return true;
138134
}
139135

140136
const activeEditor = this.editor && this.editor.getActiveCodeEditor();

0 commit comments

Comments
 (0)