diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-28 22:48:38 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-28 22:48:38 +0200 |
| commit | bcf119f2c4ac587cc8263db8a9fc0581521fdec7 (patch) | |
| tree | c7c78a13d575b8345d729bb5aa44022d7f0715d4 /src/actions/states.js | |
| parent | f29305d4c966af83a0a842f78dcb7adb7128b37c (diff) | |
Implement batch state adding
Also fixes the 'hidden states' bug.
Diffstat (limited to 'src/actions/states.js')
| -rw-r--r-- | src/actions/states.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/actions/states.js b/src/actions/states.js index 6887a1b3..29baa326 100644 --- a/src/actions/states.js +++ b/src/actions/states.js @@ -1,10 +1,9 @@ -export const ADD_TO_STATES = "ADD_TO_STATES"; +export const ADD_BATCH_TO_STATES = "ADD_BATCH_TO_STATES"; -export function addToStates(objectType, tick, object) { +export function addBatchToStates(objectType, objects) { return { - type: ADD_TO_STATES, + type: ADD_BATCH_TO_STATES, objectType, - tick, - object + objects }; } |
