mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 00:41:07 +08:00
Chore: Improve syntax
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user