From 263f8b35883aa8eb921385c150fd27d7aa44a9f2 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 20 May 2024 13:20:59 +0530 Subject: [PATCH] refactor: remove method chaining for consistency --- .../src/services/persistence/validation-schemas/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts b/packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts index 175067ad3..36dc51620 100644 --- a/packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts +++ b/packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts @@ -400,7 +400,7 @@ const HoppTestResultSchema = z (x) => "secret" in x && !x.secret ).and( z.object({ - previousValue: z.string().optional(), + previousValue: z.optional(z.string()), }) ) ), @@ -415,7 +415,7 @@ const HoppTestResultSchema = z (x) => "secret" in x && !x.secret ).and( z.object({ - previousValue: z.string().optional(), + previousValue: z.optional(z.string()), }) ) ),