File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
site/src/modules/resources/AppLink Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ export const AppLink: FC<AppLinkProps> = ({
42
42
const host = proxy . preferredWildcardHostname ;
43
43
const [ iconError , setIconError ] = useState ( false ) ;
44
44
const link = useAppLink ( app , { agent, workspace } ) ;
45
- const subdomain = new URL ( link . href ) . hostname . split ( "." ) [ 0 ] ;
46
45
47
46
// canClick is ONLY false when it's a subdomain app and the admin hasn't
48
47
// enabled wildcard access URL or the session token is being fetched.
@@ -82,7 +81,7 @@ export const AppLink: FC<AppLinkProps> = ({
82
81
"Your admin has not configured subdomain application access" ;
83
82
}
84
83
85
- if ( subdomain . length > 63 ) {
84
+ if ( app . subdomain_name && app . subdomain_name . length > 63 ) {
86
85
icon = (
87
86
< CircleAlertIcon
88
87
aria-hidden = "true"
You can’t perform that action at this time.
0 commit comments