Skip to content

Commit

Permalink
Merge pull request #4672 from node-red/allow-blank-env-var-substitutions
Browse files Browse the repository at this point in the history
Allow blank strings to be used for env var property substitutions
  • Loading branch information
knolleary committed Apr 24, 2024
2 parents c9b902c + 236e668 commit cfb300e
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
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 cfb300e

Please sign in to comment.