From 1a5ab341ab2a6a65bddd61a903c5cc8e638977bf Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 21 Aug 2024 14:33:50 +0800 Subject: [PATCH] :bug: --- http/api/dashboard.go | 4 ++++ 1 file changed, 4 insertions(+) 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) }