mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 08:21:51 +02:00
api: fix search icon returning null when no match
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user