Added distance conversion
This commit is contained in:
parent
c0cde02fec
commit
333214aa8f
|
@ -35,6 +35,10 @@
|
|||
{
|
||||
accessorKey: "distance",
|
||||
header: () => $_('distance'),
|
||||
cell: (info) => {
|
||||
if(info.getValue() < 1000){return `${info.getValue()} m`}
|
||||
return `${(info.getValue() / 1000).toFixed(1)} km`
|
||||
},
|
||||
enableColumnFilter: false,
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue