enables babel on server side

This commit is contained in:
James
2018-12-06 15:44:38 -08:00
parent 33534976aa
commit df099238c6
6 changed files with 2453 additions and 3043 deletions

View File

@@ -27,8 +27,10 @@ class SearchableTable extends Component {
return this.props.data.map(row => {
const formattedRow = {...row};
const url = `/${this.props.collection.slug}/${row.slug}`;
// Link the first column
formattedRow[this.state.columns[0].key] = <Link to={'/'}>{row[this.state.columns[0].key]}</Link>
formattedRow[this.state.columns[0].key] = <Link to={url}>{row[this.state.columns[0].key]}</Link>
return formattedRow;
})
}