Conform more code to strictNullChecks
(#10368
* Conform more code to `strictNullChecks` * Iterate
This commit is contained in:
parent
05e3fb09d6
commit
8cb8cd4eb1
24 changed files with 176 additions and 157 deletions
|
@ -685,7 +685,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
<Option
|
||||
id={`mx_SpotlightDialog_button_result_${result.name}`}
|
||||
key={`${Section[result.section]}-${result.name}`}
|
||||
onClick={result.onClick}
|
||||
onClick={result.onClick ?? null}
|
||||
>
|
||||
{result.avatar}
|
||||
{result.name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue