Commit c316d568 authored by Florian Pagnoux's avatar Florian Pagnoux
Browse files

Handle orderless nodes

parent 8562bdd9
......@@ -69,7 +69,7 @@ function buildColumn(parameter) {
Header: parameter.description || parameter.id,
columns: flow([
x => map(x, (subParam, name) => Object.assign({}, subParam, {name})),
x => sortBy(x, subParam => parameter?.metadata?.order.indexOf(subParam.name)),
x => sortBy(x, subParam => parameter?.metadata?.order?.indexOf(subParam.name)),
x => map(x, buildColumn),
x => x.concat(buildMetaDataColumns(parameter))
])(parameter.subparams)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment