aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/devices.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/devices.js')
-rw-r--r--modern/src/store/devices.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js
index cca23cb..b76bc2f 100644
--- a/modern/src/store/devices.js
+++ b/modern/src/store/devices.js
@@ -17,6 +17,9 @@ const { reducer, actions } = createSlice({
select(state, action) {
state.selectedId = action.payload.id;
},
+ unselect(state, action) {
+ state.selectedId = null;
+ },
remove(state, action) {
delete state.items[action.payload];
},