Apply strictNullChecks
to src/components/views/emojipicker/* (#10298)
This commit is contained in:
parent
1b806bb47b
commit
2191a2d820
4 changed files with 11 additions and 10 deletions
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue