fix: Fix the problem of abnormal default check items in snapshots (#8740)

This commit is contained in:
ssongliu 2025-05-19 22:46:16 +08:00 committed by GitHub
parent bf7935e313
commit 1336b93efa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:]...)