home: fix nil deref

This commit is contained in:
Stanislav Chzhen 2023-12-20 13:59:29 +03:00
parent 0920bb99fe
commit 3c532f5087
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ func (clients *clientsContainer) handleUpdateClient(w http.ResponseWriter, r *ht
if !ok {
aghhttp.Error(r, w, http.StatusBadRequest, "client not found")
return
}
c, err := clients.jsonToClient(dj.Data, prev)