Merge pull request #2383 from haouarihk/trim-ip-address

Trim ip address
This commit is contained in:
Mauricio Siu
2025-08-16 16:12:35 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ export const HandleServers = ({ serverId }: Props) => {
await mutateAsync({
name: data.name,
description: data.description || "",
ipAddress: data.ipAddress || "",
ipAddress: data.ipAddress?.trim() || "",
port: data.port || 22,
username: data.username || "root",
sshKeyId: data.sshKeyId || "",

View File

@@ -91,7 +91,7 @@ export const CreateServer = ({ stepper }: Props) => {
await mutateAsync({
name: data.name,
description: data.description || "",
ipAddress: data.ipAddress || "",
ipAddress: data.ipAddress?.trim() || "",
port: data.port || 22,
username: data.username || "root",
sshKeyId: data.sshKeyId || "",