mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
qfix: ignore ancestor error for txremovedoc (#9267)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user