diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-19 02:31:06 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-19 02:31:06 +0200 |
| commit | e9c0ffcd5d58310c6cff6a5a73bdf6062485eba4 (patch) | |
| tree | 0bae9e0d9f7f19bbd2433fa8f7f930b9210bf25c /public/bundle.js | |
| parent | 9c5b96aec109f7b37cb2c861525a084a65a817ea (diff) | |
etc
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/bundle.js b/public/bundle.js index 2a2486a..99f3b75 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -9273,8 +9273,10 @@ var tasks = function tasks() { switch (action.type) { case 'LOAD_TASKS': return action.tasks; + case 'ADD_TASK': return [action.task].concat(state); + case 'TASK_UPDATED': var updated_tasks = state.map(function (task) { if (task.id == id) { @@ -9283,6 +9285,7 @@ var tasks = function tasks() { return id; }); return updated_tasks; + default: return state; } @@ -9320,7 +9323,6 @@ var folders = function folders() { openFolders = void 0, folder_id = void 0, filesAreLoaded = void 0; - console.log(action); switch (action.type) { case 'LOAD_FOLDERS': return _extends({}, state, { |
