From 84090e0f534cfa8bf601ae6df21e5df695fd149a Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 4 Apr 2020 02:24:10 +0200 Subject: viewer: tag categories implementation code cleaning GitHub: Resolves #29 --- viewer/src/services/indexfactory.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'viewer/src/services') 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 { .forEach(category => { tagsCategories.push(category); - if (!tagsIndex[category.tag].rootPart) - tagsRemaining.delete(category.tag); - - Object.values(category.index) - .map(node => node.tag) + [category.tag, ...Object.values(category.index).map(node => node.tag)] .filter(tag => !tagsIndex[tag].rootPart) .forEach(tag => tagsRemaining.delete(tag)); }); -- cgit v1.2.3