aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-03 14:45:34 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-03 14:45:34 -0800
commit63e29d240b1030b3b6e0c8c349118f9c3ee15ccc (patch)
treef126bfb3446d485f63d4593ba41f8c4e39a58f6c /modern
parent5d3d2df0d0ee2d95cc6e0f855f9f163be48d5ddd (diff)
downloadtrackermap-web-63e29d240b1030b3b6e0c8c349118f9c3ee15ccc.tar.gz
trackermap-web-63e29d240b1030b3b6e0c8c349118f9c3ee15ccc.tar.bz2
trackermap-web-63e29d240b1030b3b6e0c8c349118f9c3ee15ccc.zip
Fix devices selection
Diffstat (limited to 'modern')
-rw-r--r--modern/src/store/devices.js2
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;