From f119fc78dda4d1e828dde04f378a63a93e3a0a7e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 2 Jul 2020 18:39:28 +0200 Subject: Add current progress on frontend port --- frontend/src/sagas/simulations.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'frontend/src/sagas/simulations.js') diff --git a/frontend/src/sagas/simulations.js b/frontend/src/sagas/simulations.js index b57fac95..be69fedd 100644 --- a/frontend/src/sagas/simulations.js +++ b/frontend/src/sagas/simulations.js @@ -2,14 +2,14 @@ import { call, put } from 'redux-saga/effects' import { addToStore } from '../actions/objects' import { addSimulationSucceeded, deleteSimulationSucceeded } from '../actions/simulations' import { addSimulation, deleteSimulation, getSimulation } from '../api/routes/simulations' -import { fetchLatestDatacenter } from './topology' +import { fetchAndStoreAllTopologiesOfSimulation } from './topology' export function* onOpenSimulationSucceeded(action) { try { const simulation = yield call(getSimulation, action.id) yield put(addToStore('simulation', simulation)) - yield fetchLatestDatacenter(action.id) + yield fetchAndStoreAllTopologiesOfSimulation(action.id) } catch (error) { console.error(error) } @@ -27,9 +27,7 @@ export function* onSimulationAdd(action) { simulation, } yield put(addToStore('authorization', authorization)) - yield put( - addSimulationSucceeded([authorization.userId, authorization.simulationId]), - ) + yield put(addSimulationSucceeded([authorization.userId, authorization.simulationId])) } catch (error) { console.error(error) } -- cgit v1.2.3