on master help sign in
lib: fix regression passing args in recursion
commit068d267ff9ab9c23685cfebeaaae74063bc8478e authorMatilde Park <matilde@tlon.io> dateTue 22 Jun 2021, 18:54 (5 years ago) parente76c258
1 file changed+1−1
lib/lib.js+1−1
lib/lib.js+1−1
@@ -170,7 +170,7 @@ export function buildPageTree(path, type = "", content = false) {
170170 children: Object.fromEntries(
171171 subdirs.map((subdir) => [
172172 subdir.name,
173− buildPageTree(join(path, subdir.name)),
173+ buildPageTree(join(path, subdir.name), type, content),
174174 ])
175175 ),
176176 };