From 8f701f43fb8d76e62ad454888689eb150520f7d7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 27 Apr 2023 07:13:38 +0100 Subject: [PATCH] Use safeSet in recursivelyAssign (#3323) --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 326f87c38..e2b29bdd4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -668,7 +668,7 @@ export function recursivelyAssign> continue; } if ((sourceValue !== null && sourceValue !== undefined) || !ignoreNullish) { - target[sourceKey as keyof T1] = sourceValue; + safeSet(target, sourceKey, sourceValue); continue; } }