From 27ca0aac3cf0c0a57e185adf16ac746fe5454729 Mon Sep 17 00:00:00 2001 From: Karan Vaid Date: Wed, 7 Apr 2021 12:21:05 +0530 Subject: [PATCH] fixed checking if a variable value as undefined when the value is a boolean false --- src/modules/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/parser.ts b/src/modules/parser.ts index d1fe7d7..41a986e 100644 --- a/src/modules/parser.ts +++ b/src/modules/parser.ts @@ -123,7 +123,7 @@ function getParsedVar (varName: string | VariableObject | ArgObject): string { */ function isVarUndefined (varName: string, variables: QueryType['variables']) { info('Checking if "%s" variable is defined in the query', varName) - return !variables || !variables[varName] || !variables[varName].type || !variables[varName].value + return !variables || !variables[varName] || !variables[varName].type || variables[varName].value === undefined } function isArray (value: any) {