Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Jun 22, 2023
1 parent bcd173b commit 8a02403
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ const AssociateMonitors = ({
});
});

_.set(monitorValues, 'associatedMonitorsEditor', JSON.stringify(value, null, 4));
_.set(monitorValues, 'associatedMonitors', delegatesToMonitors(value));
try {
_.set(monitorValues, 'associatedMonitorsEditor', JSON.stringify(value, null, 4));
_.set(monitorValues, 'associatedMonitors', delegatesToMonitors(value));
} catch (e) {
console.log('No monitor options are available.');
}
} else if (options?.length && !graphUi) {
const value = { ...queryTemplate };
const firstTwo = options.slice(0, 2);
Expand Down

0 comments on commit 8a02403

Please sign in to comment.