api: fix search icon returning null when no match

This commit is contained in:
yusing 2025-02-02 03:31:52 +08:00
parent 4c97b79adf
commit 0c7b188587

View file

@ -71,6 +71,9 @@ func List(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request) {
U.RespondError(w, err)
return
}
if icons == nil {
icons = []string{}
}
U.RespondJSON(w, r, icons)
case ListTasks:
U.RespondJSON(w, r, task.DebugTaskList())