diff --git a/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.js b/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.js index 4045f47a3..487ac2082 100644 --- a/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.js +++ b/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.js @@ -185,10 +185,7 @@ const MonitorsList = ({ values, httpClient }) => { form={form} rowProps={{ label: 'Monitor', - isInvalid: () => { - console.log(form.touched[formikFieldName], isValid()); - return form.touched[formikFieldName] && !isValid(); - }, + isInvalid: () => form.touched[formikFieldName] && !isValid(), error: () => validate(), }} > diff --git a/public/pages/CreateMonitor/containers/CreateMonitor/utils/constants.js b/public/pages/CreateMonitor/containers/CreateMonitor/utils/constants.js index 0675b74f5..1d150e704 100644 --- a/public/pages/CreateMonitor/containers/CreateMonitor/utils/constants.js +++ b/public/pages/CreateMonitor/containers/CreateMonitor/utils/constants.js @@ -73,6 +73,7 @@ export const FORMIK_INITIAL_VALUES = { filters: [], // array of FORMIK_INITIAL_WHERE_EXPRESSION_VALUES detectorId: '', associatedMonitors: DEFAULT_ASSOCIATED_MONITORS_VALUE, + associatedMonitorsList: [], }; export const FORMIK_INITIAL_AGG_VALUES = {