diff options
author | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-08 17:48:21 -0300 |
---|---|---|
committer | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-08 17:48:21 -0300 |
commit | f35692eef0763fe853f3d88a18d6aefbbf5d0d2b (patch) | |
tree | b7660d4ec3ef19f07edbd192eacac72ca8b3c923 /modern/src/store/devices.js | |
parent | 2c004026680cc9b5c1e35d7f7dd4752e56dd7dab (diff) | |
download | trackermap-web-f35692eef0763fe853f3d88a18d6aefbbf5d0d2b.tar.gz trackermap-web-f35692eef0763fe853f3d88a18d6aefbbf5d0d2b.tar.bz2 trackermap-web-f35692eef0763fe853f3d88a18d6aefbbf5d0d2b.zip |
Changed devices list search
Diffstat (limited to 'modern/src/store/devices.js')
-rw-r--r-- | modern/src/store/devices.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js index cfe8f162..52a002dc 100644 --- a/modern/src/store/devices.js +++ b/modern/src/store/devices.js @@ -21,14 +21,6 @@ const { reducer, actions } = createSlice({ remove(state, action) { delete state.items[action.payload]; }, - filterByName(state, action) { - return { - ...state, - filteredItems: action.payload - ? Object.values(state.items).filter((item) => item.name?.toLowerCase().includes(action.payload?.toLowerCase())) - : state.items, - }; - }, }, }); |