mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
children is undefined here actually, so filter wasn't working properly
This commit is contained in:
parent
cd68bb7b3f
commit
bd85dc2393
@ -38,7 +38,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 !== null && children === null && item.logLevel < this._min) {
|
if (this._min !== null && !Array.isArray(children) && item.logLevel < this._min) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user