Skip to content

Commit 82dd993

Browse files
fix: Fix issue with update website config (#8610)
1 parent 9ba293e commit 82dd993

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/app/service/website.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ func (w WebsiteService) UpdateWebsite(req request.WebsiteUpdate) error {
427427
}
428428
}
429429
website.PrimaryDomain = req.PrimaryDomain
430-
website.WebsiteGroupID = req.WebsiteGroupID
430+
if req.WebsiteGroupID > 0 {
431+
website.WebsiteGroupID = req.WebsiteGroupID
432+
}
431433
website.Remark = req.Remark
432434
website.IPV6 = req.IPV6
433435

0 commit comments

Comments
 (0)