From da5668ac27df02e5c76fe13da5897eb4b12f1b97 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 10 Nov 2025 12:02:38 +0800 Subject: [PATCH] fix: Fix incorrect upgrade notification issue (#10901) --- agent/app/service/app_utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/app/service/app_utils.go b/agent/app/service/app_utils.go index 6417af7e7..c88208d9b 100644 --- a/agent/app/service/app_utils.go +++ b/agent/app/service/app_utils.go @@ -2149,7 +2149,10 @@ func hasLinkDB(installID uint) bool { func isEditCompose(installed model.AppInstall) bool { detail, _ := appDetailRepo.GetFirst(repo.WithByID(installed.AppDetailId)) - rawCompose, _ := getUpgradeCompose(installed, detail) + rawCompose, err := getUpgradeCompose(installed, detail) + if rawCompose == "" || err != nil { + return false + } if rawCompose != installed.DockerCompose { return true }