diff --git a/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.tsx b/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.tsx index 4403171ca..b9df3cf81 100644 --- a/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.tsx +++ b/public/pages/CreateMonitor/components/AssociateMonitors/components/MonitorsList.tsx @@ -69,6 +69,7 @@ const MonitorsList = ({ monitors = [], options = [], values }) => { newMonitorOptions.forEach((mon) => { mon.disabled = isSelected(selected, mon); }); + setMonitorOptions([...newMonitorOptions]); }; @@ -83,7 +84,7 @@ const MonitorsList = ({ monitors = [], options = [], values }) => { let isSelected = false; for (const key in selected) { if (selected.hasOwnProperty(key)) { - if (_.isEqual(selected[key], monitor)) { + if (selected[key].value === monitor.value) { isSelected = true; break; }