Skip to content

Commit 5e34e28

Browse files
authored
fix: type conversion (#9)
1 parent 47f0929 commit 5e34e28

File tree

2 files changed

+75
-2
lines changed

2 files changed

+75
-2
lines changed

package-lock.json

Lines changed: 74 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const serverFormSchema = z.object({
4343
name: z.string().min(1),
4444
note: asOptionalField(z.string()),
4545
public_note: asOptionalField(z.string()),
46-
display_index: z.number().int(),
46+
display_index: z.coerce.number().int(),
4747
hide_for_guest: asOptionalField(z.boolean()),
4848
enable_ddns: asOptionalField(z.boolean()),
4949
ddns_profiles: asOptionalField(z.array(z.number())),

0 commit comments

Comments
 (0)