@@ -12,7 +12,10 @@ import {TimeAgoCell} from 'sentry/components/workflowEngine/gridCell/timeAgoCell
12
12
import { space } from 'sentry/styles/space' ;
13
13
import type { Automation } from 'sentry/types/workflowEngine/automations' ;
14
14
import useOrganization from 'sentry/utils/useOrganization' ;
15
- import { useAutomationActions } from 'sentry/views/automations/hooks/utils' ;
15
+ import {
16
+ useAutomationActions ,
17
+ useAutomationProjectIds ,
18
+ } from 'sentry/views/automations/hooks/utils' ;
16
19
import { makeAutomationDetailsPathname } from 'sentry/views/automations/pathnames' ;
17
20
18
21
type AutomationListRowProps = {
@@ -29,6 +32,7 @@ export function AutomationListRow({
29
32
const organization = useOrganization ( ) ;
30
33
const actions = useAutomationActions ( automation ) ;
31
34
const { id, name, disabled, lastTriggered, detectorIds = [ ] } = automation ;
35
+ const projectIds = useAutomationProjectIds ( automation ) ;
32
36
return (
33
37
< RowWrapper disabled = { disabled } >
34
38
< InteractionStateLayer />
@@ -53,7 +57,7 @@ export function AutomationListRow({
53
57
< ActionCell actions = { actions } disabled = { disabled } />
54
58
</ CellWrapper >
55
59
< CellWrapper className = "projects" >
56
- < ProjectList projectSlugs = { [ ] } />
60
+ < ProjectList projectSlugs = { projectIds } />
57
61
</ CellWrapper >
58
62
< CellWrapper className = "connected-monitors" >
59
63
< ConnectionCell ids = { detectorIds } type = "detector" disabled = { disabled } />
0 commit comments