Chore: Improve syntax

pull/1136/head
Nelson Chan 2 years ago
parent 2e0e35a1ee
commit 1bbd744d02

@ -568,9 +568,7 @@ exports.entryPage = "dashboard";
}
// Reset Prometheus labels
if (monitorList[monitor.id] && monitorList[monitor.id].prometheus()) {
monitorList[monitor.id].prometheus().remove();
}
monitorList[monitor.id]?.prometheus()?.remove();
bean.name = monitor.name;
bean.type = monitor.type;

Loading…
Cancel
Save