bug fixes
This commit is contained in:
@@ -228,7 +228,7 @@ class nodeClass {
|
||||
case 'q_in': {
|
||||
// payload can be number or { value, unit, timestamp }
|
||||
const val = Number(msg.payload);
|
||||
const unit = msg?.unit || 'l/s';
|
||||
const unit = msg?.unit;
|
||||
const ts = msg?.timestamp || Date.now();
|
||||
this.source.setManualInflow(val, ts, unit);
|
||||
break;
|
||||
|
||||
1368
src/specificClass.js
1368
src/specificClass.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user