fix: handle potential null values for publishMode in ShowPorts component

This commit is contained in:
Mauricio Siu
2025-07-04 23:42:35 -06:00
parent 5973d7b9b8
commit 80b72dc75e

View File

@@ -70,7 +70,7 @@ export const ShowPorts = ({ applicationId }: Props) => {
<div className="flex flex-col gap-1">
<span className="font-medium">Published Port Mode</span>
<span className="text-sm text-muted-foreground">
{port.publishMode.toUpperCase()}
{port?.publishMode?.toUpperCase()}
</span>
</div>
<div className="flex flex-col gap-1">