Fix exception in #1186 (#1191)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2022-03-22 16:10:47 +07:00 committed by GitHub
parent 7e32a5e384
commit 61ee083d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,7 +357,7 @@ export class Hierarchy {
}
}
}
for (const [k, v] of Object.entries(lu)) {
for (const [k, v] of Object.entries(lu ?? {})) {
if (k === '_id') {
continue
}