From 488d9ae5df13dcea208fc5cb3d609e0a9472bf53 Mon Sep 17 00:00:00 2001 From: jc0b Date: Tue, 28 Jul 2020 20:40:48 +0200 Subject: More stuff for review --- frontend/src/sagas/prefabs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/src/sagas/prefabs.js') diff --git a/frontend/src/sagas/prefabs.js b/frontend/src/sagas/prefabs.js index 1756095c..80ba2f80 100644 --- a/frontend/src/sagas/prefabs.js +++ b/frontend/src/sagas/prefabs.js @@ -5,7 +5,8 @@ import {getTopologyAsObject} from "./objects"; export function* onAddPrefab(action) { try { - //console.log("DEBUG: " + state.objects.tile[state.interactionLevel.tileId].rack._id) + const state = yield select((state) => state) + console.log("DEBUG: " + state.objects.tile[state.interactionLevel.tileId].rack._id) const currentRackId = yield select((state) => state.objects.tile[state.interactionLevel.tileId].rack._id) const currentRackJson = yield call(getTopologyAsObject, currentRackId) //TODO: yield call the function in saga to export the specific part of the topology -- cgit v1.2.3