Expanded mongo model

This commit is contained in:
2022-03-14 01:41:52 +03:00
parent beb5ff052f
commit 946a9afeac
5 changed files with 38 additions and 14 deletions

View File

@@ -7,8 +7,7 @@ export default class Table extends Component {
super()
this.scanResults = scanResults.map(row => ({
...row,
id: row._id,
difference: row.setPrice - row.partsPrice
id: row._id
}))
this.columns = [
{
@@ -16,7 +15,15 @@ export default class Table extends Component {
headerName: 'Name',
flex: 1,
renderCell: (cellValues) => {
return <Link href={`#${cellValues.row.url}`}>{cellValues.row.name}</Link>
return (
<Link
target='_blank'
href={cellValues.row.url}
rel='noreferrer'
>
{cellValues.row.fullName}
</Link>
)
}
},
{