Explicitly check for undefined

This commit is contained in:
RMidhunSuresh 2021-11-17 11:38:33 +05:30
parent 14eaa57434
commit 8fce29caf7

View file

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