From 7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217 Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Mon, 22 Mar 2021 10:10:34 +0530 Subject: change from valueFormatter to valueGetter --- modern/src/reports/RouteReportPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/reports/RouteReportPage.js') diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index b648503..e556a0b 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([]); -- cgit v1.2.3