diff options
Diffstat (limited to 'modern/src/store')
-rw-r--r-- | modern/src/store/devices.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js index 0d96e98d..3d7be3e6 100644 --- a/modern/src/store/devices.js +++ b/modern/src/store/devices.js @@ -12,7 +12,10 @@ const { reducer, actions } = createSlice({ }, select(state, action) { state.selectedId = action.payload.id; - } + }, + remove(state, action) { + delete state.items[action.payload]; + }, } }); |