Skip to content

Commit

Permalink
fix(dashboards): set name for deleted dashboard (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk authored Sep 24, 2024
1 parent 59553f5 commit 2960513
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/dashboard/list_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func ListUserDashboards(c *gin.Context) {
if errors.Is(err, gorm.ErrRecordNotFound) {
d = new(types.Dashboard)
d.SetID(dashboard)
d.SetName("(not found)")

dashCard.Dashboard = d
// if user dashboard has been deleted, append empty dashboard
Expand Down

0 comments on commit 2960513

Please sign in to comment.