Skip to content

Commit a774165

Browse files
jlukicCopilot
andauthored
Bug: Fix default merge when options passed
Co-authored-by: Copilot <[email protected]>
1 parent f8432fc commit a774165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/objects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const deepExtend = (target, ...args) => {
6767
const lastArg = args[args.length - 1];
6868
const defaultOptions = { preserveNonCloneable: true, preserveDOM: true };
6969
const hasOptions = keys(defaultOptions).some(key => lastArg?.[key] !== undefined);
70-
const options = hasOptions ? lastArg : defaultOptions;
70+
const options = hasOptions ? { ...defaultOptions, ...lastArg } : defaultOptions;
7171
const sources = hasOptions ? args.slice(0, -1) : args;
7272

7373
each(sources, (source) => {

0 commit comments

Comments
 (0)