Webpack hook for jsongen, [somewhat broken] UI changes
This commit is contained in:
+3
-3
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user