From 0cd4c2b646acb5fbafe0679793f0601d93734383 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 07:46:19 -0800 Subject: [PATCH] avoid nesting search inside search (#382) (#383) Signed-off-by: Amardeepsingh Siglani Signed-off-by: Amardeepsingh Siglani (cherry picked from commit 27ceb55a72c62773322d229b05ddaa34ac688f8d) Co-authored-by: Amardeepsingh Siglani --- .../containers/ConfigureTriggers/ConfigureTriggers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/CreateTrigger/containers/ConfigureTriggers/ConfigureTriggers.js b/public/pages/CreateTrigger/containers/ConfigureTriggers/ConfigureTriggers.js index 90afc3cd4..6808c7649 100644 --- a/public/pages/CreateTrigger/containers/ConfigureTriggers/ConfigureTriggers.js +++ b/public/pages/CreateTrigger/containers/ConfigureTriggers/ConfigureTriggers.js @@ -131,7 +131,7 @@ class ConfigureTriggers extends React.Component { case SEARCH_TYPE.QUERY: case SEARCH_TYPE.GRAPH: const searchRequest = buildRequest(formikValues); - _.set(monitorToExecute, 'inputs[0].search', searchRequest); + _.set(monitorToExecute, 'inputs[0]', searchRequest); break; case SEARCH_TYPE.CLUSTER_METRICS: const clusterMetricsRequest = buildClusterMetricsRequest(formikValues);