Library elements: do not error if dashboard is not found (#99608)

This commit is contained in:
Stephanie Hingtgen
2025-01-27 20:35:30 +02:00
committed by GitHub
parent 8954800d37
commit 7ebe599389
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -722,6 +722,9 @@ func (l *LibraryElementService) getConnections(c context.Context, signedInUser i
}
ds, err := l.dashboardsService.GetDashboardUIDByID(c, &dashboards.GetDashboardRefByIDQuery{ID: connection.ConnectionID})
if err != nil {
if errors.Is(err, dashboards.ErrDashboardNotFound) {
continue
}
return err
}
connections = append(connections, model.LibraryElementConnectionDTO{