diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/store/devices.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js index 1bae6d91..f2f6263b 100644 --- a/modern/src/store/devices.js +++ b/modern/src/store/devices.js @@ -20,7 +20,7 @@ const { reducer, actions } = createSlice({ }, selectId(state, action) { state.selectedId = action.payload; - state.selectedIds = [state.selectedId]; + state.selectedIds = state.selectedId ? [state.selectedId] : []; }, selectIds(state, action) { state.selectedIds = action.payload; |