From 1f08072b0bdd654d18e236f6092ff06fc77520c6 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Tue, 17 Jun 2025 12:17:34 +0700 Subject: [PATCH] qfix: ignore ancestor error for txremovedoc (#9267) Signed-off-by: Alexander Onnikov --- packages/core/src/hierarchy.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/core/src/hierarchy.ts b/packages/core/src/hierarchy.ts index f8378a0deb..374dd85db0 100644 --- a/packages/core/src/hierarchy.ts +++ b/packages/core/src/hierarchy.ts @@ -376,7 +376,16 @@ export class Hierarchy { } private updateDescendant (_class: Ref, add = true): void { - const hierarchy = this.getAncestors(_class) + let hierarchy: Ref[] = [] + + 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) {