Apply strictNullChecks to src/components/views/emojipicker/* (#10298)

This commit is contained in:
Michael Telatynski 2023-03-07 11:28:48 +00:00 committed by GitHub
parent 1b806bb47b
commit 2191a2d820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 10 deletions

View file

@ -82,7 +82,7 @@ class ReactionPicker extends React.Component<IProps, IState> {
return Object.fromEntries(
[...myAnnotations]
.filter((event) => !event.isRedacted())
.map((event) => [event.getRelation().key, event.getId()]),
.map((event) => [event.getRelation()?.key, event.getId()]),
);
}
@ -136,7 +136,6 @@ class ReactionPicker extends React.Component<IProps, IState> {
onChoose={this.onChoose}
isEmojiDisabled={this.isEmojiDisabled}
selectedEmojis={this.state.selectedEmojis}
showQuickReactions={true}
/>
);
}