diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-19 19:03:16 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:43 +0200 |
| commit | 8a49e1eedebb6d4c47edf6fd1a7545ea502d59e7 (patch) | |
| tree | 7510e2520b1be46a2e40cc72eaa21284974cde10 /src/api | |
| parent | 19033b8460cb43dc2fa34a2cffa932b5efe111ca (diff) | |
Generalize denormalization of object resources
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/sagas/objects.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/sagas/objects.js b/src/api/sagas/objects.js index 9bc98e6f..fd7830b3 100644 --- a/src/api/sagas/objects.js +++ b/src/api/sagas/objects.js @@ -4,9 +4,9 @@ import {getSimulation} from "../routes/simulations"; import {getUser} from "../routes/users"; const selectors = { - simulation: state => state.objects.simulations, - user: state => state.objects.users, - authorization: state => state.objects.authorizations, + simulation: state => state.objects.simulation, + user: state => state.objects.user, + authorization: state => state.objects.authorization, }; function* fetchAndStoreObject(objectType, id, apiCall, addToStore) { |
