gitscope
← marzneshin / Diff · f3aaba8 → f3aaba8
Changes f3aaba8..f3aaba8
Patch commit
diff --git a/dashboard/src/modules/hosts/domain/host.ts b/dashboard/src/modules/hosts/domain/host.ts
index 8950367..ca90be1 100644
--- a/dashboard/src/modules/hosts/domain/host.ts
+++ b/dashboard/src/modules/hosts/domain/host.ts
@@ -11,7 +11,7 @@ export const HostSchema = z.object({
.optional(),
port: z
.preprocess(
- (val) => (val === "" || val === undefined ? null : Number(val)),
+ (val) => (val === "" || val === undefined || val === null ? null : Number(val)),
z.union([
z
.number()