children is undefined here actually, so filter wasn't working properly

This commit is contained in:
Bruno Windels 2021-02-18 15:38:32 +01:00
parent cd68bb7b3f
commit bd85dc2393

View file

@ -38,7 +38,7 @@ export class LogFilter {
}
}
// 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;
} else {
return true;