add logic to check for key existence in post response (#3249)

This commit is contained in:
Pragadesh-45
2024-10-04 16:53:35 +05:30
committed by GitHub
parent 7a5b309664
commit 5c5e3d18fc

View File

@ -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);
}