Skip to content
Snippets Groups Projects
Verified Commit a3d39eea authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: return an empty array instead of null

parent 30bd1004
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,10 @@ func (api *API) ListImportsOfShow(c *gin.Context) {
return
}
if len(jobs) == 0 {
jobs = make([]*importer.Job, 0)
}
c.JSON(http.StatusOK, JobsListing{jobs})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment