File tree 1 file changed +4
-2
lines changed
site/src/pages/WorkspacePage
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
116
116
( org ) => org . id === workspace . organization_id ,
117
117
) ;
118
118
119
+ const orgDisplayName = activeOrg ?. display_name ?? workspace . organization_name ;
120
+
119
121
const isImmutable =
120
122
workspace . latest_build . status === "deleted" ||
121
123
workspace . latest_build . status === "deleting" ;
@@ -143,7 +145,7 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
143
145
< >
144
146
< TopbarDivider />
145
147
< OrganizationBreadcrumb
146
- orgName = { activeOrg ?. display_name ?? workspace . organization_name }
148
+ orgName = { orgDisplayName }
147
149
orgIconUrl = { activeOrg ?. icon }
148
150
orgPageUrl = {
149
151
showOrganizations
@@ -179,7 +181,7 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
179
181
}
180
182
title = {
181
183
showOrganizations
182
- ? `See affected workspaces for ${ workspace . organization_name } `
184
+ ? `See affected workspaces for ${ orgDisplayName } `
183
185
: "See affected workspaces"
184
186
}
185
187
>
You can’t perform that action at this time.
0 commit comments