|
@@ -73,7 +73,7 @@ export type RenderFunctionBaggage = {
|
|
|
location: Location;
|
|
|
organization: Organization;
|
|
|
eventView?: EventView;
|
|
|
- projectId?: string;
|
|
|
+ projectSlug?: string;
|
|
|
unit?: string;
|
|
|
};
|
|
|
|
|
@@ -342,7 +342,7 @@ const SPECIAL_FIELDS: SpecialFields = {
|
|
|
// TODO - refactor code and remove from this file or add ability to query for attachments in Discover
|
|
|
attachments: {
|
|
|
sortField: null,
|
|
|
- renderFunc: (data, {organization, projectId}) => {
|
|
|
+ renderFunc: (data, {organization, projectSlug}) => {
|
|
|
const attachments: Array<IssueAttachment> = data.attachments;
|
|
|
|
|
|
const items: MenuItemProps[] = attachments
|
|
@@ -352,7 +352,7 @@ const SPECIAL_FIELDS: SpecialFields = {
|
|
|
label: attachment.name,
|
|
|
onAction: () =>
|
|
|
window.open(
|
|
|
- `/api/0/projects/${organization.slug}/${projectId}/events/${attachment.event_id}/attachments/${attachment.id}/?download=1`
|
|
|
+ `/api/0/projects/${organization.slug}/${projectSlug}/events/${attachment.event_id}/attachments/${attachment.id}/?download=1`
|
|
|
),
|
|
|
}));
|
|
|
|
|
@@ -378,7 +378,7 @@ const SPECIAL_FIELDS: SpecialFields = {
|
|
|
},
|
|
|
minidump: {
|
|
|
sortField: null,
|
|
|
- renderFunc: (data, {organization, projectId}) => {
|
|
|
+ renderFunc: (data, {organization, projectSlug}) => {
|
|
|
const attachments: Array<IssueAttachment & {url: string}> = data.attachments;
|
|
|
|
|
|
const minidump = attachments.find(
|
|
@@ -394,7 +394,7 @@ const SPECIAL_FIELDS: SpecialFields = {
|
|
|
minidump
|
|
|
? () => {
|
|
|
window.open(
|
|
|
- `/api/0/projects/${organization.slug}/${projectId}/events/${minidump.event_id}/attachments/${minidump.id}/?download=1`
|
|
|
+ `/api/0/projects/${organization.slug}/${projectSlug}/events/${minidump.event_id}/attachments/${minidump.id}/?download=1`
|
|
|
);
|
|
|
}
|
|
|
: undefined
|