Conform more of the codebase to strictNullChecks
(#10666)
* Conform more of the codebase to `strictNullChecks` * Iterate * Iterate * Iterate * Iterate
This commit is contained in:
parent
8867f1801e
commit
93b4ee654b
17 changed files with 126 additions and 114 deletions
|
@ -99,7 +99,7 @@ export default class MessageComposerFormatBar extends React.PureComponent<IProps
|
|||
}
|
||||
|
||||
public showAt(selectionRect: DOMRect): void {
|
||||
if (!this.formatBarRef.current) return;
|
||||
if (!this.formatBarRef.current?.parentElement) return;
|
||||
|
||||
this.setState({ visible: true });
|
||||
const parentRect = this.formatBarRef.current.parentElement.getBoundingClientRect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue