Webpack hook for jsongen, [somewhat broken] UI changes

This commit is contained in:
2022-04-24 00:27:51 -04:00
parent 103eec9551
commit d189096e96
23 changed files with 199 additions and 96 deletions
+3 -3
View File
@@ -31,16 +31,16 @@ export function toListItem(record: Record<string, any>): listItem | null {
children = schildren;
}
else {
children = [...lchildren, ... schildren.map((s: string): listItem => {
children = [...lchildren, ...schildren.map((s: string): listItem => {
return { title: s };
}) ];
})];
}
}
return {
title: record.title,
url: record.url,
children: children.length? children : undefined,
children: children.length ? children : undefined,
description: record.description,
};
}