Skip to content

Commit

Permalink
[FEATURE] Add composite monitor type opensearch-project#573
Browse files Browse the repository at this point in the history
Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Jun 19, 2023
1 parent 654a5f1 commit 39b4d0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const MonitorsList = ({ monitors = [], options = [], values }) => {
newMonitorOptions.forEach((mon) => {
mon.disabled = isSelected(selected, mon);
});

setMonitorOptions([...newMonitorOptions]);
};

Expand All @@ -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;
}
Expand Down

0 comments on commit 39b4d0d

Please sign in to comment.