diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/listArtTagNetwork.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/listArtTagNetwork.js b/src/content/dependencies/listArtTagNetwork.js index cc79d400..d776ca92 100644 --- a/src/content/dependencies/listArtTagNetwork.js +++ b/src/content/dependencies/listArtTagNetwork.js @@ -43,9 +43,9 @@ export default { - (descendantNodesB ? 1 : 0)); const recursiveGetRootAncestor = ancestorArtTag => - (rootArtTags.includes(ancestorArtTag) - ? ancestorArtTag - : recursiveGetRootAncestor(ancestorArtTag.directAncestorArtTags[0])); + (ancestorArtTag.directAncestorArtTags.length === 1 + ? recursiveGetRootAncestor(ancestorArtTag.directAncestorArtTags[0]) + : ancestorArtTag); const ancestorRootArtTags = (asRoot && !empty(artTag.directAncestorArtTags) |