mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
api: fix search icon returning null when no match
This commit is contained in:
parent
4c97b79adf
commit
0c7b188587
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ func List(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request) {
|
||||||
U.RespondError(w, err)
|
U.RespondError(w, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if icons == nil {
|
||||||
|
icons = []string{}
|
||||||
|
}
|
||||||
U.RespondJSON(w, r, icons)
|
U.RespondJSON(w, r, icons)
|
||||||
case ListTasks:
|
case ListTasks:
|
||||||
U.RespondJSON(w, r, task.DebugTaskList())
|
U.RespondJSON(w, r, task.DebugTaskList())
|
||||||
|
|
Loading…
Add table
Reference in a new issue