From e9c0ffcd5d58310c6cff6a5a73bdf6062485eba4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 19 Jul 2017 02:31:06 +0200 Subject: etc --- public/bundle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'public/bundle.js') 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, { -- cgit v1.2.3-70-g09d2