From c035d9b8d722ad1089039de31de32ff1407ea7c7 Mon Sep 17 00:00:00 2001 From: Arda Seremet Date: Mon, 20 Jul 2020 21:24:20 +0300 Subject: [PATCH] Quick fix --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index b60811a..f61cf0a 100755 --- a/app.js +++ b/app.js @@ -686,6 +686,9 @@ const initData = () => { if(!(Object.keys(ioData).includes("controllable_pins"))) { ioData.controllable_pins = {}; } + if(!ioData.activeTasks) { + ioData.activeTasks = {}; + } for(const [key, value] of Object.entries(ioData.controllable_pins)) { if(!availablePins.includes(key)) { console.log("Pin number " + key + " is not valid! Removing it from JSON.");