Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): support deep assign on empty object for app config (#10087)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jan 13, 2023
1 parent ef39d2c commit 71a5727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nuxt/src/app/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function deepAssign (obj: any, newObj: any) {
for (const key in newObj) {
const val = newObj[key]
if (val !== null && typeof val === 'object') {
obj[key] = obj[key] || {}
deepAssign(obj[key], val)
} else {
obj[key] = val
Expand Down

0 comments on commit 71a5727

Please sign in to comment.