mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-28 16:01:25 +02:00
add logic to check for key existence in post response (#3249)
This commit is contained in:
parent
7a5b309664
commit
5c5e3d18fc
@ -50,7 +50,9 @@ class VarsRuntime {
|
|||||||
_.each(enabledVars, (v) => {
|
_.each(enabledVars, (v) => {
|
||||||
try {
|
try {
|
||||||
const value = evaluateJsExpressionBasedOnRuntime(v.value, context, this.runtime);
|
const value = evaluateJsExpressionBasedOnRuntime(v.value, context, this.runtime);
|
||||||
bru.setVar(v.name, value);
|
if (v.name) {
|
||||||
|
bru.setVar(v.name, value);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errors.set(v.name, error);
|
errors.set(v.name, error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user