Skip to content

Commit 0d1ad7a

Browse files
committed
chore(aci): add projectIds from hook
1 parent 1b38146 commit 0d1ad7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import {TimeAgoCell} from 'sentry/components/workflowEngine/gridCell/timeAgoCell
1212
import {space} from 'sentry/styles/space';
1313
import type {Automation} from 'sentry/types/workflowEngine/automations';
1414
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';
1619
import {makeAutomationDetailsPathname} from 'sentry/views/automations/pathnames';
1720

1821
type AutomationListRowProps = {
@@ -29,6 +32,7 @@ export function AutomationListRow({
2932
const organization = useOrganization();
3033
const actions = useAutomationActions(automation);
3134
const {id, name, disabled, lastTriggered, detectorIds = []} = automation;
35+
const projectIds = useAutomationProjectIds(automation);
3236
return (
3337
<RowWrapper disabled={disabled}>
3438
<InteractionStateLayer />
@@ -53,7 +57,7 @@ export function AutomationListRow({
5357
<ActionCell actions={actions} disabled={disabled} />
5458
</CellWrapper>
5559
<CellWrapper className="projects">
56-
<ProjectList projectSlugs={[]} />
60+
<ProjectList projectSlugs={projectIds} />
5761
</CellWrapper>
5862
<CellWrapper className="connected-monitors">
5963
<ConnectionCell ids={detectorIds} type="detector" disabled={disabled} />

0 commit comments

Comments
 (0)