diff --git a/src/ic/ic-store.js b/src/ic/ic-store.js index 15da1e9..d9ae16e 100644 --- a/src/ic/ic-store.js +++ b/src/ic/ic-store.js @@ -80,15 +80,15 @@ class InfrastructureComponentStore extends ArrayStore { ICsDataManager.getStatus(action.url, action.token, action.ic); return super.reduce(state, action); - case 'ics/received-status': + case 'ics/status-received': let tempIC = action.ic; if(!tempIC.managedexternally){ - tempIC.state = response.state; - tempIC.statusupdateraw = response + tempIC.state = action.data.state; + tempIC.statusupdateraw = action.data; AppDispatcher.dispatch({ type: 'ics/start-edit', data: tempIC, - token: token, + token: action.token, }); } return super.reduce(state, action);