aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-01 15:26:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-01 15:26:08 -0700
commitaf6b60f85ba09a9d1a258cf9d1b6b61d4b8e4fe5 (patch)
tree6fe30c87a48ad5a438554f8cb594028b49efcfef /modern/src/store
parent90f292b7739835202842d88eeaf55a531d29d3c3 (diff)
downloadtrackermap-web-af6b60f85ba09a9d1a258cf9d1b6b61d4b8e4fe5.tar.gz
trackermap-web-af6b60f85ba09a9d1a258cf9d1b6b61d4b8e4fe5.tar.bz2
trackermap-web-af6b60f85ba09a9d1a258cf9d1b6b61d4b8e4fe5.zip
Migrate to a card for popup
Diffstat (limited to 'modern/src/store')
-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 cca23cb9..9cfde0a8 100644
--- a/modern/src/store/devices.js
+++ b/modern/src/store/devices.js
@@ -15,7 +15,7 @@ const { reducer, actions } = createSlice({
action.payload.forEach((item) => state.items[item.id] = item);
},
select(state, action) {
- state.selectedId = action.payload.id;
+ state.selectedId = action.payload;
},
remove(state, action) {
delete state.items[action.payload];