diff --git a/js/utils.js b/js/utils.js index afda403..d7ac128 100644 --- a/js/utils.js +++ b/js/utils.js @@ -302,7 +302,8 @@ function buildClause(clause, parsedquery, whereind){ parsedquery.where[1].expression.args[0].value = "lm"; } else{ - parsedquery.where.splice(1, 1) + if (parsedquery.where[1].type=='filter') + parsedquery.where.splice(1, 1) } if (clause['typeGramm0'] !=null && clause['typeGramm0'] != "all") if(whereind> -1)