mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-25 20:04:55 +01: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)
|
||||
return
|
||||
}
|
||||
if icons == nil {
|
||||
icons = []string{}
|
||||
}
|
||||
U.RespondJSON(w, r, icons)
|
||||
case ListTasks:
|
||||
U.RespondJSON(w, r, task.DebugTaskList())
|
||||
|
||||
Reference in New Issue
Block a user