diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-22 10:10:34 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-22 10:10:34 +0530 |
commit | 7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217 (patch) | |
tree | a41726991d18d3a53a719edc64fe4b267661d3b6 /modern/src/reports | |
parent | 25a4c399894348de8e856c27b714f86866d22e0f (diff) | |
download | trackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.tar.gz trackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.tar.bz2 trackermap-web-7bc6f83a8d10e7bbaf9b0a8ad92117668f9ff217.zip |
change from valueFormatter to valueGetter
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 4 |
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([]); |