Skip to content

Commit

Permalink
fix(controls/metric_control): null check before calling resize
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <dotronghai96@gmail.com>
  • Loading branch information
hainenber committed Jun 8, 2024
1 parent 697c4e9 commit d841530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default class AdhocMetricEditPopover extends PureComponent {
refreshAceEditor() {
setTimeout(() => {
if (this.aceEditorRef) {
this.aceEditorRef.editor.resize();
this.aceEditorRef.editor?.resize();
}
}, 0);
}
Expand Down

0 comments on commit d841530

Please sign in to comment.