diff options
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/DeviceRow.js | 2 | ||||
-rw-r--r-- | modern/src/main/MainMap.js | 2 | ||||
-rw-r--r-- | modern/src/main/MainPage.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/main/DeviceRow.js b/modern/src/main/DeviceRow.js index dbe5df6e..bf5aec3e 100644 --- a/modern/src/main/DeviceRow.js +++ b/modern/src/main/DeviceRow.js @@ -92,7 +92,7 @@ const DeviceRow = ({ data, index, style }) => { <div style={style}> <ListItemButton key={item.id} - onClick={() => dispatch(devicesActions.select(item.id))} + onClick={() => dispatch(devicesActions.selectId(item.id))} disabled={!admin && item.disabled} > <ListItemAvatar> diff --git a/modern/src/main/MainMap.js b/modern/src/main/MainMap.js index 273a7787..3b57c745 100644 --- a/modern/src/main/MainMap.js +++ b/modern/src/main/MainMap.js @@ -30,7 +30,7 @@ const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => { const features = useFeatures(); const onMarkerClick = useCallback((_, deviceId) => { - dispatch(devicesActions.select(deviceId)); + dispatch(devicesActions.selectId(deviceId)); }, [dispatch]); return ( diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 1040002a..8369ba97 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -149,7 +149,7 @@ const MainPage = () => { <StatusCard deviceId={selectedDeviceId} position={selectedPosition} - onClose={() => dispatch(devicesActions.select(null))} + onClose={() => dispatch(devicesActions.selectId(null))} desktopPadding={theme.dimensions.drawerWidthDesktop} /> )} |