diff --git a/src/helpers/parseUtil.ts b/src/helpers/parseUtil.ts index 4824fcf7f..71f332fc5 100644 --- a/src/helpers/parseUtil.ts +++ b/src/helpers/parseUtil.ts @@ -112,9 +112,11 @@ export class ParseStatus { ): Promise> { const syncPairs: ObjectPair[] = []; for (const pair of pairs) { + const key = await pair.key; + const value = await pair.value; syncPairs.push({ - key: await pair.key, - value: await pair.value, + key, + value, }); } return ParseStatus.mergeObjectSync(status, syncPairs); diff --git a/src/types.ts b/src/types.ts index 6a3e4d203..6a2d8c1f8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2357,9 +2357,10 @@ export class ZodObject< const syncPairs: any[] = []; for (const pair of pairs) { const key = await pair.key; + const value = await pair.value; syncPairs.push({ key, - value: await pair.value, + value, alwaysSet: pair.alwaysSet, }); }