From e8306886c2985fe609e3ab10b18e53e25f418e0c Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <1paneldev@sina.com> Date: Mon, 10 Nov 2025 11:08:20 +0800 Subject: [PATCH] fix: Fix incorrect upgrade notification issue --- 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 6417af7e7e84..c88208d9bf63 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 }