diff options
Diffstat (limited to 'modern/src/map/CurrentPositionsMap.js')
-rw-r--r-- | modern/src/map/CurrentPositionsMap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/CurrentPositionsMap.js b/modern/src/map/CurrentPositionsMap.js index 9e00774a..874e0804 100644 --- a/modern/src/map/CurrentPositionsMap.js +++ b/modern/src/map/CurrentPositionsMap.js @@ -4,8 +4,8 @@ import { useSelector } from 'react-redux'; import PositionsMap from './PositionsMap'; const CurrentPositionsMap = () => { - const positions = useSelector((state) => Object.values(state.positions.items)); - return (<PositionsMap positions={positions} />); + const positions = useSelector((state) => state.positions.items); + return (<PositionsMap positions={Object.values(positions)} />); }; export default CurrentPositionsMap; |