Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
};

const onSubmit = async (data: Domain) => {

const trimData = {
...data,
host: data.host.trim()
}
await mutateAsync({
domainId,
...(data.domainType === "application" && {
Expand All @@ -228,7 +233,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
...(data.domainType === "compose" && {
composeId: id,
}),
...data,
...trimData,
})
.then(async () => {
toast.success(dictionary.success);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Schema = z.object({
description: z.string().optional(),
ipAddress: z.string().min(1, {
message: "IP Address is required",
}),
}).trim(),
port: z.number().optional(),
username: z.string().optional(),
sshKeyId: z.string().min(1, {
Expand Down
Loading