Conform more of the codebase to strictNullChecks (#11100)
This commit is contained in:
committed by
GitHub
parent
328db8fdfd
commit
7b3a4e556a
@@ -491,7 +491,7 @@ export default class ScrollPanel extends React.Component<IProps> {
|
||||
// This would cause jumping to happen on Chrome/macOS.
|
||||
return new Promise((resolve) => window.setTimeout(resolve, 1))
|
||||
.then(() => {
|
||||
return this.props.onFillRequest(backwards);
|
||||
return this.props.onFillRequest?.(backwards);
|
||||
})
|
||||
.finally(() => {
|
||||
this.pendingFillRequests[dir] = false;
|
||||
|
||||
Reference in New Issue
Block a user