1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

fix ic store typos

This commit is contained in:
Sonja Happ 2021-01-28 12:33:58 +01:00
parent 910db7534b
commit b6b6629f2e

View file

@ -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);