trim the ip address

This commit is contained in:
Haouari haitam Kouider
2025-08-15 15:13:24 +00:00
committed by GitHub
parent 9763dce045
commit 661c517dfc

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 || "",