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.
This commit is contained in:
jake87 committed 2021-11-17 17:45:54 +11:00
1 parent 76882ad1c4
commit eb3b7df390
1 file changed
+3 -2
+3 -2
View File
@@ -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],