aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store')
-rw-r--r--modern/src/store/devices.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js
index cca23cb9..9cfde0a8 100644
--- a/modern/src/store/devices.js
+++ b/modern/src/store/devices.js
@@ -15,7 +15,7 @@ const { reducer, actions } = createSlice({
action.payload.forEach((item) => state.items[item.id] = item);
},
select(state, action) {
- state.selectedId = action.payload.id;
+ state.selectedId = action.payload;
},
remove(state, action) {
delete state.items[action.payload];