Skip to content

Commit

Permalink
Merge pull request #500 from Dokploy/canary
Browse files Browse the repository at this point in the history
v0.9.2
  • Loading branch information
Siumauricio authored Sep 29, 2024
2 parents 9f6f872 + 7046d05 commit 349bc89
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,21 @@ export const AddServer = () => {
<FormItem>
<FormLabel>Port</FormLabel>
<FormControl>
<Input placeholder="22" {...field} />
<Input
placeholder="22"
{...field}
onChange={(e) => {
const value = e.target.value;
if (value === "") {
field.onChange(0);
} else {
const number = Number.parseInt(value, 10);
if (!Number.isNaN(number)) {
field.onChange(number);
}
}
}}
/>
</FormControl>

<FormMessage />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,21 @@ export const UpdateServer = ({ serverId }: Props) => {
<FormItem>
<FormLabel>Port</FormLabel>
<FormControl>
<Input placeholder="22" {...field} />
<Input
placeholder="22"
{...field}
onChange={(e) => {
const value = e.target.value;
if (value === "") {
field.onChange(0);
} else {
const number = Number.parseInt(value, 10);
if (!Number.isNaN(number)) {
field.onChange(number);
}
}
}}
/>
</FormControl>

<FormMessage />
Expand Down
2 changes: 1 addition & 1 deletion apps/dokploy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dokploy",
"version": "v0.9.1",
"version": "v0.9.2",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down

0 comments on commit 349bc89

Please sign in to comment.