aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-03-22 10:10:34 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-03-22 10:10:34 +0530
commit7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217 (patch)
treea41726991d18d3a53a719edc64fe4b267661d3b6 /modern
parent25a4c399894348de8e856c27b714f86866d22e0f (diff)
downloadtrackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.tar.gz
trackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.tar.bz2
trackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.zip
change from valueFormatter to valueGetter
Diffstat (limited to 'modern')
-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([]);