mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +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)
|
||||
return
|
||||
}
|
||||
if icons == nil {
|
||||
icons = []string{}
|
||||
}
|
||||
U.RespondJSON(w, r, icons)
|
||||
case ListTasks:
|
||||
U.RespondJSON(w, r, task.DebugTaskList())
|
||||
|
|
Loading…
Add table
Reference in a new issue