aboutsummaryrefslogtreecommitdiff
path: root/modern/src/DevicesList.js
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-26 11:59:59 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-26 11:59:59 +0000
commit8f26d3171d8d0bccfbd00893498a6ed9db45adb2 (patch)
tree7b46bb05803bee25459dec70a57efe0fe3600bf9 /modern/src/DevicesList.js
parent8c266947493ad1b3d8f90223a4b6ee90387f0c18 (diff)
downloadtrackermap-web-8f26d3171d8d0bccfbd00893498a6ed9db45adb2.tar.gz
trackermap-web-8f26d3171d8d0bccfbd00893498a6ed9db45adb2.tar.bz2
trackermap-web-8f26d3171d8d0bccfbd00893498a6ed9db45adb2.zip
renamed selector getItemPosition to getPosition
Diffstat (limited to 'modern/src/DevicesList.js')
-rw-r--r--modern/src/DevicesList.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js
index 07eeac3e..cbf3a0a9 100644
--- a/modern/src/DevicesList.js
+++ b/modern/src/DevicesList.js
@@ -18,7 +18,7 @@ import { devicesActions } from './store';
import EditCollectionView from './EditCollectionView';
import { useEffectAsync } from './reactHelper';
import { formatPosition } from './common/formatter';
-import { getDevices, getItemPosition } from './common/selectors';
+import { getDevices, getPosition } from './common/selectors';
const useStyles = makeStyles((theme) => ({
list: {
@@ -86,7 +86,7 @@ const DeviceRow = ({ data, index, style }) => {
const { items } = data;
const item = items[index];
- const position = useSelector(getItemPosition(item.id));
+ const position = useSelector(getPosition(item.id));
const showIgnition = position?.attributes.hasOwnProperty('ignition') && position.attributes.ignition;
return (