diff options
Diffstat (limited to 'modern/src/store')
-rw-r--r-- | modern/src/store/devices.js | 3 |
1 files changed, 0 insertions, 3 deletions
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 = {}; |