Skip to content

Commit 22a010d

Browse files
committed
ref(aci): use project slugs
1 parent e13ba68 commit 22a010d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

static/app/views/automations/components/automationListRow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {ActionCell} from 'sentry/components/workflowEngine/gridCell/actionCell';
99
import AutomationTitleCell from 'sentry/components/workflowEngine/gridCell/automationTitleCell';
1010
import {ConnectionCell} from 'sentry/components/workflowEngine/gridCell/connectionCell';
1111
import {TimeAgoCell} from 'sentry/components/workflowEngine/gridCell/timeAgoCell';
12+
import ProjectsStore from 'sentry/stores/projectsStore';
1213
import {space} from 'sentry/styles/space';
1314
import type {Automation} from 'sentry/types/workflowEngine/automations';
1415
import useOrganization from 'sentry/utils/useOrganization';
@@ -33,6 +34,9 @@ export function AutomationListRow({
3334
const actions = useAutomationActions(automation);
3435
const {id, name, disabled, lastTriggered, detectorIds = []} = automation;
3536
const projectIds = useAutomationProjectIds(automation);
37+
const projectSlugs = projectIds.map(
38+
projectId => ProjectsStore.getById(projectId)?.slug
39+
) as string[];
3640
return (
3741
<RowWrapper disabled={disabled}>
3842
<InteractionStateLayer />
@@ -57,7 +61,7 @@ export function AutomationListRow({
5761
<ActionCell actions={actions} disabled={disabled} />
5862
</CellWrapper>
5963
<CellWrapper className="projects">
60-
<ProjectList projectSlugs={projectIds} />
64+
<ProjectList projectSlugs={projectSlugs} />
6165
</CellWrapper>
6266
<CellWrapper className="connected-monitors">
6367
<ConnectionCell ids={detectorIds} type="detector" disabled={disabled} />

0 commit comments

Comments
 (0)