From 3f52ff710419bb123e940efef8eabd11d0bba5d8 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Thu, 1 Dec 2022 15:50:54 -0800 Subject: [PATCH] avoid nesting search inside search Signed-off-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);