1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-24 08:32:23 +02:00

Chore: Improve syntax

This commit is contained in:
Nelson Chan 2022-01-07 14:29:42 +08:00
parent 2e0e35a1ee
commit 1bbd744d02

View File

@ -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;