From bcf119f2c4ac587cc8263db8a9fc0581521fdec7 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 28 Sep 2017 22:48:38 +0200 Subject: Implement batch state adding Also fixes the 'hidden states' bug. --- src/actions/states.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/actions') 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 }; } -- cgit v1.2.3