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 for sending of data to IC

This commit is contained in:
Sonja Happ 2020-06-29 12:10:37 +02:00
parent 209649ead8
commit ec99815eb1

View file

@ -111,8 +111,11 @@ class ICDataStore extends ReduceStore {
state[action.ic].input.sequence++;
state[action.ic].input.values[action.signal-1] = action.data;
ICDataDataManager.send(state[action.ic].input, action.ic);
// copy of state needed because changes are not yet propagated
let input = JSON.parse(JSON.stringify(state[action.ic].input));
ICDataDataManager.send(input, action.ic);
this.__emitChange();
return state;
default: