Fix type stuff

This commit is contained in:
x032205
2025-07-18 16:22:51 -04:00
parent b7d7b555b2
commit 4ab0da6b03
2 changed files with 22 additions and 15 deletions
@@ -7,7 +7,10 @@ import { slugSchema } from "@app/lib/schemas";
export const genericAppConnectionFieldsSchema = z.object({
name: slugSchema({ min: 1, max: 64, field: "Name" }),
description: z.string().trim().max(256, "Description cannot exceed 256 characters").nullish(),
gatewayId: z.string().nullish()
gatewayId: z
.string()
.nullish()
.transform((v) => (v === "" ? null : v))
});
export const GenericAppConnectionsFields = () => {