From 8164e6b30e007a3eeaea25decf98ccb098d9e85f Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 7 Dec 2021 00:53:01 -0600 Subject: Changed stuff --- modern/src/store/devices.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modern/src/store/devices.js') 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]; }, -- cgit v1.2.3