feat: resolved bug reported on search and integration failing due to typo in integration field

This commit is contained in:
=
2024-07-30 23:19:07 +05:30
parent 8435b20178
commit 6a156371c0
10 changed files with 30 additions and 24 deletions
@@ -23,7 +23,10 @@ export enum SecretActionType {
export const formSchema = z.object({
key: z.string().trim().min(1, { message: "Secret key is required" }),
value: z.string().transform((val) => (val.at(-1) === "\n" ? `${val.trim()}\n` : val.trim())),
value: z
.string()
.transform((val) => (val.at(-1) === "\n" ? `${val.trim()}\n` : val.trim()))
.optional(),
idOverride: z.string().trim().optional(),
valueOverride: z
.string()