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

Fix edit links

parent f256a07f
......@@ -28,8 +28,9 @@ function cellFormatter({value, metadata}) {
}
function buildSimpleColumn(parameter) {
const source = parameter.source.replace('openfisca_baremes_ipp/', '') // The structure of the repo is not the typical OF structure, so we monkey patch
return {
Header: <span className="edit-link">{parameter.description || parameter.id}<br/><a target="_blank" href={parameter.source}>Edit</a></span>,
Header: <span className="edit-link">{parameter.description || parameter.id}<br/><a target="_blank" href={source}>Edit</a></span>,
accessor: item => item[parameter.id],
id: parameter.id,
Cell: cellFormatter
......
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