aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/StatusView.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-17 11:51:27 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-17 11:51:27 -0700
commite470eeb4fcc923bc54968a6561f66c75dab288b9 (patch)
treefe17741ad65384e63d299426ae765b1e9fa3acfe /modern/src/map/StatusView.js
parent2054cc9d11d77d7883a5858bcbcc3833aed4b874 (diff)
downloadtrackermap-web-e470eeb4fcc923bc54968a6561f66c75dab288b9.tar.gz
trackermap-web-e470eeb4fcc923bc54968a6561f66c75dab288b9.tar.bz2
trackermap-web-e470eeb4fcc923bc54968a6561f66c75dab288b9.zip
Remove selectors file
Diffstat (limited to 'modern/src/map/StatusView.js')
-rw-r--r--modern/src/map/StatusView.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js
index cec71f98..cdd6ecaf 100644
--- a/modern/src/map/StatusView.js
+++ b/modern/src/map/StatusView.js
@@ -18,7 +18,6 @@ import {
} from '../common/formatter';
import { useAttributePreference } from '../common/preferences';
import RemoveDialog from '../RemoveDialog';
-import { getPosition } from '../common/selectors';
import { useTranslation } from '../LocalizationProvider';
const useStyles = makeStyles((theme) => ({
@@ -41,7 +40,7 @@ const StatusView = ({
const [removeDialogShown, setRemoveDialogShown] = useState(false);
const device = useSelector((state) => state.devices.items[deviceId]);
- const position = useSelector(getPosition(deviceId));
+ const position = useSelector((state) => state.positions.items[deviceId]);
const distanceUnit = useAttributePreference('distanceUnit');
const speedUnit = useAttributePreference('speedUnit');