Skip to content
Prev Previous commit
Next Next commit
fix: fix test
  • Loading branch information
jaaydenh committed Apr 2, 2025
commit 352b29bb9e16a1bcc53d3ea29f5feb651e78b549
4 changes: 2 additions & 2 deletions site/src/pages/TemplatePage/TemplatePageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export type TemplatePageHeaderProps = {
template: Template;
activeVersion: TemplateVersion;
permissions: AuthorizationResponse;
orgPermissions: OrganizationPermissions;
orgPermissions: OrganizationPermissions | undefined;
onDeleteTemplate: () => void;
};

Expand All @@ -180,7 +180,7 @@ export const TemplatePageHeader: FC<TemplatePageHeaderProps> = ({
<PageHeader
actions={
<>
{!template.deprecated && orgPermissions.createWorkspaces && (
{!template.deprecated && orgPermissions?.createWorkspaces && (
<Button
variant="contained"
startIcon={<AddIcon />}
Expand Down