aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = {};