Conform more of the codebase to strictNullChecks (#10358
* Conform more of the codebase to `strictNullChecks` * Fix types * Iterate * Iterate
This commit is contained in:
committed by
GitHub
parent
41d88ad6ae
commit
503df62191
@@ -64,7 +64,7 @@ interface ICanEditLevelFieldProps {
|
||||
}
|
||||
|
||||
const CanEditLevelField: React.FC<ICanEditLevelFieldProps> = ({ setting, roomId, level }) => {
|
||||
const canEdit = SettingsStore.canSetValue(setting, roomId, level);
|
||||
const canEdit = SettingsStore.canSetValue(setting, roomId ?? null, level);
|
||||
const className = canEdit ? "mx_DevTools_SettingsExplorer_mutable" : "mx_DevTools_SettingsExplorer_immutable";
|
||||
return (
|
||||
<td className={className}>
|
||||
|
||||
Reference in New Issue
Block a user