aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/reports/RouteReportPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index b6485038..e556a0ba 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -64,14 +64,14 @@ const RouteReportPage = () => {
field: 'ignition',
type: 'boolean',
flex: 1,
- valueFormatter: ({ getValue }) => getValue('attributes').ignition ? 'Yes' : 'No',
+ valueGetter: ({ getValue }) => getValue('attributes').ignition ? 'Yes' : 'No',
}, {
headerName: t('deviceTotalDistance'),
field: 'totalDistance',
type: 'number',
hide: true,
flex: 1,
- valueFormatter: ({ getValue }) => formatDistance(getValue('attributes').totalDistance, distanceUnit),
+ valueGetter: ({ getValue }) => formatDistance(getValue('attributes').totalDistance, distanceUnit),
}]
const [items, setItems] = useState([]);