From eb3b7df390a91a6264f9503bf7f8fe394eb83e4c Mon Sep 17 00:00:00 2001 From: jake87 Date: Wed, 17 Nov 2021 17:45:54 +1100 Subject: [PATCH] Fix to be more consistant with the rest of clustorio Also made sure "null" is entered as empty as to be consistant with the rest of clustorio. --- packages/ctl/ctl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ctl/ctl.js b/packages/ctl/ctl.js index f945ec69..6bd06063 100755 --- a/packages/ctl/ctl.js +++ b/packages/ctl/ctl.js @@ -175,7 +175,9 @@ masterConfigCommands.add(new libCommand.Command({ } catch (err) { part = null; } - print(part, typeof part); + if (part === "null") { + part = null; + } let finalIndex = filtered[index][0].trim(); final[finalIndex] = part; // trim whitespace and put in final array for processing @@ -183,7 +185,6 @@ masterConfigCommands.add(new libCommand.Command({ } for (let element in final) { if (element in final) { - print(element, final[element], typeof final[element]); await libLink.messages.setMasterConfigField.send(control, { field: element, value: final[element],