diff options
Diffstat (limited to 'modern/src/store/devices.js')
-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 0d96e98..3d7be3e 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]; + }, } }); |