Merge pull request #4872 from node-red/4863-fix-multi-env-config-select

Fix env-var config select when multiple defined
This commit is contained in:
Nick O'Leary 2024-09-11 17:12:55 +01:00 committed by GitHub
commit d4f18c1731
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -899,7 +899,7 @@ RED.editor = (function() {
const labelText = RED.editor.envVarList.lookupLabel(labels, labels["en-US"] || tenv.name, locale)
const config = {
env: tenv,
id: '${' + parentEnv[0].name + '}',
id: '${' + tenv.name + '}',
type: type,
label: labelText,
__label__: `[env] ${labelText}`