aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 09:45:07 -0700
committerGitHub <noreply@github.com>2021-07-26 09:45:07 -0700
commit59c60f8fcfabe855231e3dfecf9b363b7488024f (patch)
tree7b46bb05803bee25459dec70a57efe0fe3600bf9 /modern/src/common
parent618c453374c2adc5974c3a5805ffb8c883528bb5 (diff)
parent8f26d3171d8d0bccfbd00893498a6ed9db45adb2 (diff)
downloadtrackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.tar.gz
trackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.tar.bz2
trackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.zip
Merge pull request #885 from dkyeremeh/home-screen-fix
Home screen fix
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/selectors.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js
index 44a0c547..0c4c02e1 100644
--- a/modern/src/common/selectors.js
+++ b/modern/src/common/selectors.js
@@ -1,3 +1,7 @@
export const getIsAdmin = (state) => state.session.user?.administrator;
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];