- Fix nil checks

- Enable add arr to config page
- Other minor fixes
This commit is contained in:
Mukhtar Akere
2025-04-27 23:43:19 +01:00
parent a3e64cc269
commit f977c52571
6 changed files with 41 additions and 35 deletions

View File

@@ -241,6 +241,7 @@ func (ui *Handler) handleUpdateConfig(w http.ResponseWriter, r *http.Request) {
DownloadUncached: a.DownloadUncached,
})
}
currentConfig.Arrs = updatedConfig.Arrs
if err := currentConfig.Save(); err != nil {
http.Error(w, "Error saving config: "+err.Error(), http.StatusInternalServerError)
return