Handle false-like env vars properly

This commit is contained in:
Nick O'Leary
2023-11-02 00:40:55 +01:00
parent 6ac905f264
commit b6ecc6d9ea
2 changed files with 9 additions and 8 deletions

View File

@@ -109,9 +109,8 @@ module.exports = function(RED) {
}
const p = props.shift()
const property = p.p;
const value = p.v ? p.v : '';
const valueType = p.vt ? p.vt : 'str';
const value = p.v !== undefined ? p.v : '';
const valueType = p.vt !== undefined ? p.vt : 'str';
if (property) {
if (valueType === "jsonata") {
if (p.v) {