diff --git a/src/sentry/api/endpoints/organization_dashboard_details.py b/src/sentry/api/endpoints/organization_dashboard_details.py index 3e6803c799dff7..cbce7c14fd0f06 100644 --- a/src/sentry/api/endpoints/organization_dashboard_details.py +++ b/src/sentry/api/endpoints/organization_dashboard_details.py @@ -231,7 +231,7 @@ def put(self, request: Request, organization, dashboard) -> Response: elif not is_favorited and request.user.id in current_favorites: current_favorites.remove(request.user.id) else: - Response(status=204) + return Response(status=204) dashboard.favorited_by = current_favorites