qfix: ignore ancestor error for txremovedoc (#9267)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-06-17 12:17:34 +07:00
committed by GitHub
parent c6a3991c90
commit 1f08072b0b
+10 -1
View File
@@ -376,7 +376,16 @@ export class Hierarchy {
}
private updateDescendant (_class: Ref<Classifier>, add = true): void {
const hierarchy = this.getAncestors(_class)
let hierarchy: Ref<Classifier>[] = []
try {
hierarchy = this.getAncestors(_class)
} catch (err) {
if (add) {
throw err
}
}
for (const cls of hierarchy) {
const list = this.descendants.get(cls)
if (list === undefined) {