Skip to content

Commit 20a5ad2

Browse files
rework layout to use structured tags (#191)
* wip * touchups
1 parent 1bff1a2 commit 20a5ad2

34 files changed

+7197
-6700
lines changed

3-tidy-up.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ function getGlossTree(sensesWithoutInflectionGlosses) {
341341
curr = new Map();
342342
temp.set(levelGloss, curr);
343343
}
344-
if (levelIndex === 0) {
345-
const branch = /** @type {GlossBranch} */ (curr);
346-
const filteredTags = curr.get('_tags') ? tags.filter(value => branch.get('_tags')?.includes(value)) : tags;
347-
branch.set('_tags', filteredTags);
348-
}
344+
345+
const branch = /** @type {GlossBranch} */ (curr);
346+
const filteredTags = curr.get('_tags') ? tags.filter(value => branch.get('_tags')?.includes(value)) : tags;
347+
branch.set('_tags', filteredTags);
348+
349349
if(levelIndex === glossesArray.length - 1) {
350350
curr.set('_examples', examples);
351351
}

0 commit comments

Comments
 (0)