diff --git a/packages/bruno-js/src/runtime/vars-runtime.js b/packages/bruno-js/src/runtime/vars-runtime.js index 1ed806000..94e45f46e 100644 --- a/packages/bruno-js/src/runtime/vars-runtime.js +++ b/packages/bruno-js/src/runtime/vars-runtime.js @@ -50,7 +50,9 @@ class VarsRuntime { _.each(enabledVars, (v) => { try { const value = evaluateJsExpressionBasedOnRuntime(v.value, context, this.runtime); - bru.setVar(v.name, value); + if (v.name) { + bru.setVar(v.name, value); + } } catch (error) { errors.set(v.name, error); }