Add settling basin node, fixed issue with object assignment

This commit is contained in:
2025-06-17 13:00:18 +02:00
parent 1da7a9f602
commit 0469f678c5
5 changed files with 116 additions and 5 deletions

View File

@@ -26,11 +26,11 @@
},
oneditsave: function() {
let debit = parseFloat($("#node-input-F2").typedInput("value"));
if (isNaN(volume) || debit < 0) {
if (isNaN(debit) || debit < 0) {
RED.notify("Debit is not set correctly", {type: "error"});
}
let inlet = parseInt($("#node-input-n_inlets").typedInput("value"));
if (isNaN(inlet) || inlet < 1) {
if (inlet < 1) {
RED.notify("Number of inlets not set correctly", {type: "error"});
}
}