From 63e29d240b1030b3b6e0c8c349118f9c3ee15ccc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Feb 2023 14:45:34 -0800 Subject: Fix devices selection --- modern/src/store/devices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern') 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; -- cgit v1.2.3