summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js4
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, {