Apply strictNullChecks
to src/components/views/settings
(#10724)
This commit is contained in:
parent
a4f0b80692
commit
1f4d857283
11 changed files with 772 additions and 48 deletions
|
@ -65,7 +65,9 @@ export default class ProfileSettings extends React.Component<{}, IState> {
|
|||
|
||||
private removeAvatar = (): void => {
|
||||
// clear file upload field so same file can be selected
|
||||
this.avatarUpload.current.value = "";
|
||||
if (this.avatarUpload.current) {
|
||||
this.avatarUpload.current.value = "";
|
||||
}
|
||||
this.setState({
|
||||
avatarUrl: undefined,
|
||||
avatarFile: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue