From f8f0ad64d321bf9bbec42a2e2d2b17f2f0fe76f1 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Mon, 17 Apr 2023 11:05:29 -0700 Subject: [PATCH] Fixed a bug with doc level trigger creation. See issue 448 for more details. (#513) Signed-off-by: AWSHurneyt --- .../containers/CreateTrigger/utils/formikToTrigger.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(' ');