Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
French Tax and Benefit Tables
baremes-ipp-views
Commits
c316d568
Commit
c316d568
authored
Nov 16, 2018
by
Florian Pagnoux
Browse files
Handle orderless nodes
parent
8562bdd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/ParameterTable.js
View file @
c316d568
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment