aboutsummaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
Diffstat (limited to 'viewer')
-rw-r--r--viewer/src/services/indexfactory.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/viewer/src/services/indexfactory.ts b/viewer/src/services/indexfactory.ts
index 0a84951..25027f3 100644
--- a/viewer/src/services/indexfactory.ts
+++ b/viewer/src/services/indexfactory.ts
@@ -127,11 +127,7 @@ export default class IndexFactory {
127 .forEach(category => { 127 .forEach(category => {
128 tagsCategories.push(category); 128 tagsCategories.push(category);
129 129
130 if (!tagsIndex[category.tag].rootPart) 130 [category.tag, ...Object.values(category.index).map(node => node.tag)]
131 tagsRemaining.delete(category.tag);
132
133 Object.values(category.index)
134 .map(node => node.tag)
135 .filter(tag => !tagsIndex[tag].rootPart) 131 .filter(tag => !tagsIndex[tag].rootPart)
136 .forEach(tag => tagsRemaining.delete(tag)); 132 .forEach(tag => tagsRemaining.delete(tag));
137 }); 133 });