Skip to content

Commit dd851dd

Browse files
authored
Fix removed types (#8749)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent e762b43 commit dd851dd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

plugins/card-resources/src/components/ChangeType.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
const _class = hierarchy.getClass(desc)
9494
if (_class.label === undefined) continue
9595
if (_class.kind !== ClassifierKind.CLASS) continue
96+
if ((_class as MasterTag).removed === true) continue
9697
added.add(desc)
9798
toAdd.push(_class)
9899
}

plugins/card-resources/src/components/settings/TagsHierarchy.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@
3535
const desc = hierarchy.getDescendants(_class)
3636
for (const clazz of desc) {
3737
const cls = hierarchy.getClass(clazz)
38-
if (cls.extends === _class && !cls.hidden && kind === cls.kind && cls.label !== undefined) {
38+
if (
39+
cls.extends === _class &&
40+
!cls.hidden &&
41+
kind === cls.kind &&
42+
cls.label !== undefined &&
43+
(cls as MasterTag).removed !== true
44+
) {
3945
result.push(clazz)
4046
}
4147
}

0 commit comments

Comments
 (0)