1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Use safeSet in recursivelyAssign (#3323)

This commit is contained in:
Michael Telatynski
2023-04-27 07:13:38 +01:00
committed by GitHub
parent 4bdb9111dd
commit 8f701f43fb

View File

@@ -668,7 +668,7 @@ export function recursivelyAssign<T1 extends T2, T2 extends Record<string, any>>
continue; continue;
} }
if ((sourceValue !== null && sourceValue !== undefined) || !ignoreNullish) { if ((sourceValue !== null && sourceValue !== undefined) || !ignoreNullish) {
target[sourceKey as keyof T1] = sourceValue; safeSet(target, sourceKey, sourceValue);
continue; continue;
} }
} }