diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js index 7977d25f9..5072a12ca 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js @@ -110,6 +110,10 @@ } function getEnvVars (obj, envVars = {}) { + contextKnownKeys.env = contextKnownKeys.env || {} + if (contextKnownKeys.env[obj.id]) { + return contextKnownKeys.env[obj.id] + } let parent if (obj.type === 'tab' || obj.type === 'subflow') { RED.nodes.eachConfig(function (conf) { @@ -130,9 +134,10 @@ envVars[env.name] = obj }) } + contextKnownKeys.env[obj.id] = envVars return envVars } - RED.pp = getEnvVars + const envAutoComplete = function (val) { const editStack = RED.editor.getEditStack() if (editStack.length === 0) {