From ccf9e84ddfa3e240d7ffdf5d4638084cad8f3756 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 21 Jun 2010 23:09:23 +0200 Subject: [PATCH] This task list cache might not exist yet. --- kronolith/js/kronolith.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 0b0bbddf3..a1c583293 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2407,7 +2407,9 @@ KronolithCore = { } task.cp = !task.cp; - this.tcache.get(task.cp ? 'complete' : 'incomplete').get(tasklist).set(taskid, task); + if (this.tcache.get(task.cp ? 'complete' : 'incomplete')) { + this.tcache.get(task.cp ? 'complete' : 'incomplete').get(tasklist).set(taskid, task); + } this.tcache.get(task.cp ? 'incomplete' : 'complete').get(tasklist).unset(taskid); // Remove row if necessary. -- 2.11.0