diff --git a/http/api/dashboard.go b/http/api/dashboard.go index cde9367..f59f10e 100644 --- a/http/api/dashboard.go +++ b/http/api/dashboard.go @@ -89,5 +89,9 @@ func (DashboardApi) ConnectionList(c *gin.Context) { }) } + if len(connections) <= 0 { + connections = []vo.DataTraffic{} + } + response.R(c).OkWithData(connections) }