mirror of
https://github.com/element-hq/element-call.git
synced 2026-08-28 17:58:18 +00:00
committed by
Timo
co-authored by
Robin
parent
4a9e97071d
commit
586bbb81b8
+1
-1
@@ -263,7 +263,7 @@ class ParamParser {
|
||||
type: { [s: string]: T } | ArrayLike<T>,
|
||||
): T | undefined {
|
||||
const value = this.getParam(name);
|
||||
if (value && Object.values(type).includes(value as T)) {
|
||||
if (value !== null && Object.values(type).includes(value as T)) {
|
||||
return value as T;
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user