diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-22 19:30:28 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-22 19:30:28 -0700 |
commit | 990d485a21c945e7d57b85378650a65f3e79eed3 (patch) | |
tree | eb513a337f097607410f4ae48d673dd18c2f1c74 /modern/src/reducers | |
parent | 80f36b23de8557445623e530708298a557f9fa2e (diff) | |
download | trackermap-web-990d485a21c945e7d57b85378650a65f3e79eed3.tar.gz trackermap-web-990d485a21c945e7d57b85378650a65f3e79eed3.tar.bz2 trackermap-web-990d485a21c945e7d57b85378650a65f3e79eed3.zip |
Handle list clicks
Diffstat (limited to 'modern/src/reducers')
-rw-r--r-- | modern/src/reducers/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/reducers/index.js b/modern/src/reducers/index.js index 4593d1f3..752a4c3f 100644 --- a/modern/src/reducers/index.js +++ b/modern/src/reducers/index.js @@ -22,6 +22,11 @@ function rootReducer(state = initialState, action) { ...state, positions: updateMap(state.positions, action.positions, 'deviceId') }); + case 'SELECT_DEVICE': + return Object.assign({}, { + ...state, + selectedDevice: action.device.id + }); default: return state; } |