From a7154a9a15833a6b588a3c819cd297ff477ebbe9 Mon Sep 17 00:00:00 2001 From: stingl Date: Mon, 22 Nov 2021 14:13:04 +0100 Subject: [PATCH] Fix error; --- js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/app.js b/js/app.js index 416f0e2..17e1d5f 100644 --- a/js/app.js +++ b/js/app.js @@ -730,6 +730,10 @@ const TimeTrack = { this.updateStorage(); }, getOpenTasksForTracker(tasks) { + if (!tasks) { + return 0; + } + let counter = 0; tasks.forEach((task) => {