mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
@@ -263,7 +263,7 @@ class ParamParser {
|
|||||||
type: { [s: string]: T } | ArrayLike<T>,
|
type: { [s: string]: T } | ArrayLike<T>,
|
||||||
): T | undefined {
|
): T | undefined {
|
||||||
const value = this.getParam(name);
|
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 value as T;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user