From 1336b93efae03012c86794d8fc67c2a87c609fc0 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 19 May 2025 22:46:16 +0800 Subject: [PATCH] fix: Fix the problem of abnormal default check items in snapshots (#8740) --- agent/app/service/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/app/service/snapshot.go b/agent/app/service/snapshot.go index 1bb78c3ce..1c78a93f4 100644 --- a/agent/app/service/snapshot.go +++ b/agent/app/service/snapshot.go @@ -120,7 +120,7 @@ func (u *SnapshotService) LoadSnapshotData() (dto.SnapshotData, error) { } for i, item := range itemBackups { if item.Label == "app" { - data.BackupData = append(itemBackups[:i], itemBackups[i+1:]...) + itemBackups = append(itemBackups[:i], itemBackups[i+1:]...) } if item.Label == "system_snapshot" { itemBackups = append(itemBackups[:i], itemBackups[i+1:]...)