From 88c8f920d94018704aed2ac4af884c2dc2cd22fc Mon Sep 17 00:00:00 2001 From: Ravinou Date: Sun, 1 Jun 2025 12:28:04 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20handle=20empty=20SSH=5FSE?= =?UTF-8?q?RVER=5FPORT=20with=20quick=20command=20button=20#470?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Components/Repo/QuickCommands/QuickCommands.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/Repo/QuickCommands/QuickCommands.tsx b/Components/Repo/QuickCommands/QuickCommands.tsx index 874b1be..8fe57b3 100644 --- a/Components/Repo/QuickCommands/QuickCommands.tsx +++ b/Components/Repo/QuickCommands/QuickCommands.tsx @@ -22,7 +22,7 @@ export default function QuickCommands(props: QuickCommandsProps) { // Asynchronously call copy to clipboard navigator.clipboard .writeText( - `ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT}/./${props.repositoryName}` + `ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./${props.repositoryName}` ) .then(() => { setIsCopied(true); @@ -42,7 +42,7 @@ export default function QuickCommands(props: QuickCommandsProps) { ) : (
ssh://{wizardEnv?.UNIX_USER}@{FQDN} - {SSH_SERVER_PORT}/./ + {SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./ {props.repositoryName}
)}