@@ -9,6 +9,7 @@ import {ActionCell} from 'sentry/components/workflowEngine/gridCell/actionCell';
9
9
import AutomationTitleCell from 'sentry/components/workflowEngine/gridCell/automationTitleCell' ;
10
10
import { ConnectionCell } from 'sentry/components/workflowEngine/gridCell/connectionCell' ;
11
11
import { TimeAgoCell } from 'sentry/components/workflowEngine/gridCell/timeAgoCell' ;
12
+ import ProjectsStore from 'sentry/stores/projectsStore' ;
12
13
import { space } from 'sentry/styles/space' ;
13
14
import type { Automation } from 'sentry/types/workflowEngine/automations' ;
14
15
import useOrganization from 'sentry/utils/useOrganization' ;
@@ -33,6 +34,9 @@ export function AutomationListRow({
33
34
const actions = useAutomationActions ( automation ) ;
34
35
const { id, name, disabled, lastTriggered, detectorIds = [ ] } = automation ;
35
36
const projectIds = useAutomationProjectIds ( automation ) ;
37
+ const projectSlugs = projectIds . map (
38
+ projectId => ProjectsStore . getById ( projectId ) ?. slug
39
+ ) as string [ ] ;
36
40
return (
37
41
< RowWrapper disabled = { disabled } >
38
42
< InteractionStateLayer />
@@ -57,7 +61,7 @@ export function AutomationListRow({
57
61
< ActionCell actions = { actions } disabled = { disabled } />
58
62
</ CellWrapper >
59
63
< CellWrapper className = "projects" >
60
- < ProjectList projectSlugs = { projectIds } />
64
+ < ProjectList projectSlugs = { projectSlugs } />
61
65
</ CellWrapper >
62
66
< CellWrapper className = "connected-monitors" >
63
67
< ConnectionCell ids = { detectorIds } type = "detector" disabled = { disabled } />
0 commit comments