From 8a49e1eedebb6d4c47edf6fd1a7545ea502d59e7 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sat, 19 Aug 2017 19:03:16 +0200 Subject: Generalize denormalization of object resources --- src/api/sagas/objects.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/sagas') 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) { -- cgit v1.2.3