Browse Source

fix(issue-diff): Remove reference to invalid URL (#12545)

`/events/latest/` is not a valid URL, the correct URL for the latest
event in a group is `/issues/:issueId/events/latest/`
Lyn Nagara 6 years ago
parent
commit
ae46a3deea
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/sentry/static/sentry/app/components/issueDiff.jsx

+ 0 - 4
src/sentry/static/sentry/app/components/issueDiff.jsx

@@ -92,10 +92,6 @@ class IssueDiff extends React.Component {
   }
 
   getEndpoint(issueId, eventId) {
-    if (eventId !== 'latest') {
-      return `/events/${eventId}/`;
-    }
-
     return `/issues/${issueId}/events/${eventId}/`;
   }