mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Explicitly check for undefined
This commit is contained in:
parent
14eaa57434
commit
8fce29caf7
@ -42,7 +42,7 @@ export class LogFilter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// neither our children or us have a loglevel high enough, filter out.
|
// neither our children or us have a loglevel high enough, filter out.
|
||||||
if (this._min && !Array.isArray(children) && item.logLevel < this._min) {
|
if (this._min !== undefined && !Array.isArray(children) && item.logLevel < this._min) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user