Skip to content

Commit

Permalink
Allow blank strings to be used for env var property substitutions
Browse files Browse the repository at this point in the history
Fixes #4663
  • Loading branch information
knolleary committed Apr 24, 2024
1 parent c9b902c commit 236e668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node_modules/@node-red/runtime/lib/flows/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function mapEnvVarProperties(obj,prop,flow,config) {
if (obj[prop][0] === "$" && (EnvVarPropertyRE_old.test(v) || EnvVarPropertyRE.test(v)) ) {
const envVar = v.substring(2,v.length-1);
const r = redUtil.getSetting(config, envVar, flow);
if (r !== undefined && r !== '') {
if (r !== undefined) {
obj[prop] = r
}
}
Expand Down

0 comments on commit 236e668

Please sign in to comment.