summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/prefabs.js
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-28 20:40:48 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:45 +0200
commit488d9ae5df13dcea208fc5cb3d609e0a9472bf53 (patch)
tree6276481e3fa6953985cc21cc956d50ad7ea06343 /frontend/src/sagas/prefabs.js
parent40e15a1a21edf5229c6ea8ec6655c56bfc1cc25b (diff)
More stuff for review
Diffstat (limited to 'frontend/src/sagas/prefabs.js')
-rw-r--r--frontend/src/sagas/prefabs.js3
1 files changed, 2 insertions, 1 deletions
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