We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1ff79 commit 88c8f92Copy full SHA for 88c8f92
1 file changed
Components/Repo/QuickCommands/QuickCommands.tsx
@@ -22,7 +22,7 @@ export default function QuickCommands(props: QuickCommandsProps) {
22
// Asynchronously call copy to clipboard
23
navigator.clipboard
24
.writeText(
25
- `ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT}/./${props.repositoryName}`
+ `ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./${props.repositoryName}`
26
)
27
.then(() => {
28
setIsCopied(true);
@@ -42,7 +42,7 @@ export default function QuickCommands(props: QuickCommandsProps) {
42
) : (
43
<div className={classes.tooltip}>
44
ssh://{wizardEnv?.UNIX_USER}@{FQDN}
45
- {SSH_SERVER_PORT}/./
+ {SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./
46
{props.repositoryName}
47
</div>
48
)}
0 commit comments