Update server/model/monitor.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Frank Elsinga 2026-01-05 08:41:00 +01:00 committed by GitHub
parent e9043c7352
commit 3ae495e33b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -766,7 +766,7 @@ class Monitor extends BeanModel {
if (res.data.State.Restarting) {
bean.status = PENDING;
bean.msg = "Container is reporting it is currently restarting";
} else if (res.data.State.Health && res.data.State.Health !== "none") {
} else if (res.data.State.Health && res.data.State.Health.Status !== "none") {
// if healthchecks are disabled (?), Health MAY not be present
if (res.data.State.Health.Status === "healthy") {
bean.status = UP;