Skip to content

Commit c8f9226

Browse files
committed
fix: display correct template version name in dropdown
1 parent 3b410f7 commit c8f9226

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site/src/pages/WorkspacePage/WorkspaceTopbar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
162162
rootTemplateUrl={templateLink}
163163
templateVersionName={workspace.template_name}
164164
templateVersionDisplayName={workspace.template_display_name}
165+
latestBuildVersionName={
166+
workspace.latest_build.template_version_name
167+
}
165168
/>
166169
</TopbarData>
167170

@@ -362,6 +365,7 @@ type WorkspaceBreadcrumbProps = Readonly<{
362365
templateIconUrl: string;
363366
rootTemplateUrl: string;
364367
templateVersionName: string;
368+
latestBuildVersionName: string;
365369
templateVersionDisplayName?: string;
366370
}>;
367371

@@ -370,6 +374,7 @@ const WorkspaceBreadcrumb: FC<WorkspaceBreadcrumbProps> = ({
370374
templateIconUrl,
371375
rootTemplateUrl,
372376
templateVersionName,
377+
latestBuildVersionName,
373378
templateVersionDisplayName = templateVersionName,
374379
}) => {
375380
return (
@@ -409,7 +414,7 @@ const WorkspaceBreadcrumb: FC<WorkspaceBreadcrumbProps> = ({
409414
to={`${rootTemplateUrl}/versions/${encodeURIComponent(templateVersionName)}`}
410415
css={{ color: "inherit" }}
411416
>
412-
Version: {templateVersionDisplayName}
417+
Version: {latestBuildVersionName}
413418
</Link>
414419
}
415420
avatar={

0 commit comments

Comments
 (0)