Handle promise linting (#5488)
This commit is contained in:
@@ -233,7 +233,7 @@ export class Editor extends React.PureComponent<
|
||||
window.addEventListener("theme-changed", this.dispatchThemeChanged);
|
||||
|
||||
if (this.props.scrollTo) {
|
||||
this.scrollToAnchor(this.props.scrollTo);
|
||||
void this.scrollToAnchor(this.props.scrollTo);
|
||||
}
|
||||
|
||||
this.calculateDir();
|
||||
@@ -263,7 +263,7 @@ export class Editor extends React.PureComponent<
|
||||
}
|
||||
|
||||
if (this.props.scrollTo && this.props.scrollTo !== prevProps.scrollTo) {
|
||||
this.scrollToAnchor(this.props.scrollTo);
|
||||
void this.scrollToAnchor(this.props.scrollTo);
|
||||
}
|
||||
|
||||
// Focus at the end of the document if switching from readOnly and autoFocus
|
||||
|
||||
Reference in New Issue
Block a user