ref: semtree updates.

This commit is contained in:
manunamz
2023-10-12 16:51:30 -04:00
parent 5ef0263482
commit 69bd514f33
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
import { bonsai } from '../wikibonsai/semtree';
const root = bonsai ? bonsai.root : '';
const tree = bonsai ? bonsai.tree : [];
const treeNodes = bonsai ? bonsai.nodes : [];
---
<!doctype html>
@@ -20,7 +20,7 @@ const tree = bonsai ? bonsai.tree : [];
<Header title={SITE_TITLE} />
<main>
<h1>Tag Map</h1>
<Branch nodes={tree.filter(node => node.text === root)} />
<Branch nodes={treeNodes.filter(tn => tn.text === root)} />
</main>
<Footer />
</body>