diff --git a/ui/litellm-dashboard/src/components/Issues/IssueDetail.tsx b/ui/litellm-dashboard/src/components/Issues/IssueDetail.tsx index 741e564c4b3..a4ef2e63746 100644 --- a/ui/litellm-dashboard/src/components/Issues/IssueDetail.tsx +++ b/ui/litellm-dashboard/src/components/Issues/IssueDetail.tsx @@ -208,28 +208,29 @@ export default function IssueDetail({ id }: { id: string }) { const query = useIssue(accessToken, id); const globalAccess = hasCapability(userRole, "viewGlobalSpend"); const denied = query.error instanceof ApiError && query.error.status === 403; - let back = { href: uiHref("usage?view=my-usage"), label: "My usage" }; - if (globalAccess) back = { href: issuesHref(), label: "Alerts" }; - else if (query.data?.can_view_activity === true) { - const href = resourceHref(query.data); - if (href) back = { href, label: "Resource activity" }; - } - let content = ( -
- Loading alert… -
- ); - if (!accessToken) content =Sign in to view this alert.
; - else if (query.isError) - content = ( -{denied ? "You don’t have access to this alert." : "Could not load this alert."}
- -Sign in to view this alert.
; + if (query.isError) + return ( +{denied ? "You don’t have access to this alert." : "Could not load this alert."}
+ ++ Loading alert… +
); - else if (query.data) content =