diff --git a/public/pages/CreateTrigger/containers/CreateTrigger/utils/formikToTrigger.js b/public/pages/CreateTrigger/containers/CreateTrigger/utils/formikToTrigger.js index 299ba6ee6..e6374ed08 100644 --- a/public/pages/CreateTrigger/containers/CreateTrigger/utils/formikToTrigger.js +++ b/public/pages/CreateTrigger/containers/CreateTrigger/utils/formikToTrigger.js @@ -108,8 +108,7 @@ export function getDocumentLevelScriptSource(conditions) { } if (!_.isEmpty(query) && !_.isEmpty(query.queryName)) { const queryExpression = _.get(query, 'expression'); - const operator = query.operator === '!=' ? '!' : ''; - scriptSourceContents.push(`${operator}query[${queryExpression}]`); + scriptSourceContents.push(`query[${queryExpression}]`); } }); return scriptSourceContents.join(' ');