diff options
author | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-08 15:35:04 -0300 |
---|---|---|
committer | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-08 15:35:04 -0300 |
commit | 784a2e8194c08349293a7bae9a3b96473301dd01 (patch) | |
tree | 9ac0444729f542b2adbdd5f2fdd957e457db9cda /modern/src/common/selectors.js | |
parent | 227971b2d28c8005ebf2ea3b8a135687a8ae0a17 (diff) | |
download | trackermap-web-784a2e8194c08349293a7bae9a3b96473301dd01.tar.gz trackermap-web-784a2e8194c08349293a7bae9a3b96473301dd01.tar.bz2 trackermap-web-784a2e8194c08349293a7bae9a3b96473301dd01.zip |
Update devices list search
Diffstat (limited to 'modern/src/common/selectors.js')
-rw-r--r-- | modern/src/common/selectors.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js index 0c4c02e1..45a79504 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 getFilteredDevices = (state) => Object.values(state.devices.filteredItems); + export const getPosition = (id) => (state) => state.positions.items[id]; |