aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reducers
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reducers')
-rw-r--r--modern/src/reducers/index.js5
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;
}