Skip to content

Commit bac0e2c

Browse files
authored
fix(aci): make project optional (#86561)
super tiny fix
1 parent 9c5c306 commit bac0e2c

File tree

1 file changed

+6
-4
lines changed
  • static/app/components/workflowEngine/layout

1 file changed

+6
-4
lines changed

static/app/components/workflowEngine/layout/detail.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface WorkflowEngineDetailLayoutProps {
1515
* Expected to include `<DetailLayout.Main>` and `<DetailLayout.Sidebar>` components.
1616
*/
1717
children: React.ReactNode;
18-
project: AvatarProject;
18+
project?: AvatarProject;
1919
}
2020

2121
/**
@@ -29,9 +29,11 @@ function DetailLayout({children, project}: WorkflowEngineDetailLayoutProps) {
2929
<Layout.HeaderContent>
3030
<BreadcrumbsFromContext />
3131
<Layout.Title>{title}</Layout.Title>
32-
<ProjectContainer>
33-
<ProjectBadge project={project} disableLink avatarSize={16} />
34-
</ProjectContainer>
32+
{project && (
33+
<ProjectContainer>
34+
<ProjectBadge project={project} disableLink avatarSize={16} />
35+
</ProjectContainer>
36+
)}
3537
</Layout.HeaderContent>
3638
<ActionsFromContext />
3739
</Layout.Header>

0 commit comments

Comments
 (0)