Skip to content

Commit

Permalink
fix: deep-merge before early return
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Nov 1, 2024
1 parent 678456f commit c150809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/adapters/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export function deepMerge(
return;
}

let subTarget = target[key]
const subTarget = target[key]
if (!isMergeableObject(subTarget)) {
target[key] = subTarget = {}
target[key] = deepMerge({}, source[key])
return
}

Expand Down

0 comments on commit c150809

Please sign in to comment.