on master help sign in
lib: fix regression passing args in recursion
068d267Matilde Park
lib/lib.js+1−1
@@ -170,7 +170,7 @@ export function buildPageTree(path, type = "", content = false) {
170 children: Object.fromEntries(
170 children: Object.fromEntries(
171 subdirs.map((subdir) => [
171 subdirs.map((subdir) => [
172 subdir.name,
172 subdir.name,
173− buildPageTree(join(path, subdir.name)),
173+ buildPageTree(join(path, subdir.name), type, content),
174 ])
174 ])
175 ),
175 ),
176 };
176 };