1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-13 17:24:44 +08:00

fix: 解决本地应用删除版本文件夹,页面版本没有删除的问题 (#1510)

This commit is contained in:
zhengkunwang223 2023-07-03 12:30:14 +08:00 committed by GitHub
parent 46495937b1
commit b780df96af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -470,9 +470,13 @@ func (a AppService) SyncAppListFromLocal() {
oldDetail, exist := appDetails[version]
if exist {
newDetail.ID = oldDetail.ID
delete(appDetails, version)
}
app.Details[i] = newDetail
}
for _, v := range appDetails {
app.Details = append(app.Details, v)
}
}
app.TagsKey = append(app.TagsKey, constant.AppResourceLocal)
apps[app.Key] = app