feat: redesign responsive console and fix restore regressions
This commit is contained in:
@@ -205,6 +205,9 @@ func (a *API) config(w http.ResponseWriter, r *http.Request, i store.Instance, a
|
||||
return
|
||||
}
|
||||
var document any
|
||||
if strings.TrimSpace(in.Content) == "" {
|
||||
in.Content = "[]\n"
|
||||
}
|
||||
if yaml.Unmarshal([]byte(in.Content), &document) != nil {
|
||||
fail(w, 400, "invalid YAML")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user