aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-07 18:37:19 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-07 18:37:19 -0600
commit97eff88fd78e0c247b7f8b188f9ef92b9ca295ed (patch)
treeb879521d856ab297701ef52b6d92e80d0aa76e69 /modern/src/common
parentd79760dbc28d642b8b53f4cdae411fa9375a737a (diff)
downloadetbsa-traccar-web-97eff88fd78e0c247b7f8b188f9ef92b9ca295ed.tar.gz
etbsa-traccar-web-97eff88fd78e0c247b7f8b188f9ef92b9ca295ed.tar.bz2
etbsa-traccar-web-97eff88fd78e0c247b7f8b188f9ef92b9ca295ed.zip
Implemented device search functionality! :D
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/selectors.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js
index 0c4c02e..e52943c 100644
--- a/modern/src/common/selectors.js
+++ b/modern/src/common/selectors.js
@@ -4,4 +4,6 @@ export const getUserId = (state) => state.session.user?.id;
export const getDevices = (state) => Object.values(state.devices.items);
-export const getPosition = (id) => (state) => state.positions.items[id];
+export const getFilteredDevices = (state) => Object.values(state.devices.filteredItems);
+
+export const getPosition = (id) => (state) => state.positions.items[id]; \ No newline at end of file