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

Commit

Permalink
better object chck
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2022
1 parent ca1f3a2 commit d5b0196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (process.dev) {
function deepAssign (obj: any, newObj: any) {
for (const key in newObj) {
const val = newObj[key]
if (val && typeof val === 'object') {
if (val !== null && typeof val === 'object') {
deepAssign(obj[key], val)
} else {
obj[key] = val
Expand Down

0 comments on commit d5b0196

Please sign in to comment.