aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-07 18:46:57 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-07 18:46:57 -0600
commitbe38d879dc5cdcc8f81c9ea13365355f686b2869 (patch)
treea67e3cf4eafd2680c64d0847e0b2afe9f94e8723 /modern/src
parent97eff88fd78e0c247b7f8b188f9ef92b9ca295ed (diff)
downloadetbsa-traccar-web-be38d879dc5cdcc8f81c9ea13365355f686b2869.tar.gz
etbsa-traccar-web-be38d879dc5cdcc8f81c9ea13365355f686b2869.tar.bz2
etbsa-traccar-web-be38d879dc5cdcc8f81c9ea13365355f686b2869.zip
Changed selected device zoom to 19 and removed some console.logs
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/map/SelectedDeviceMap.js2
-rw-r--r--modern/src/store/devices.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/modern/src/map/SelectedDeviceMap.js b/modern/src/map/SelectedDeviceMap.js
index d05394b..5ce6744 100644
--- a/modern/src/map/SelectedDeviceMap.js
+++ b/modern/src/map/SelectedDeviceMap.js
@@ -16,7 +16,7 @@ const SelectedDeviceMap = () => {
useEffect(() => {
if (mapCenter) {
- map.easeTo({ center: mapCenter.position, zoom:18 });
+ map.easeTo({ center: mapCenter.position, zoom:19 });
}
}, [mapCenter]);
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js
index 2be5d6b..bb9068f 100644
--- a/modern/src/store/devices.js
+++ b/modern/src/store/devices.js
@@ -22,13 +22,10 @@ const { reducer, actions } = createSlice({
state.selectedId = null;
},
setFilter(state, action) {
- console.log ('State! ', current(state).items);
- console.log ('Payload! ', action.payload);
const items = Object.entries(current(state).items);
state.filteredItems = Object.fromEntries(items.filter(([k, v]) => {
return v.name.toLowerCase().includes(action.payload.toLowerCase());
}));
- console.log ('Filtered items!', state.filteredItems);
},
clearFilter(state, action) {
state.filteredItems = {};