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

Commit d5b0196

Browse files
committed
better object chck
1 parent ca1f3a2 commit d5b0196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/app/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (process.dev) {
3232
function deepAssign (obj: any, newObj: any) {
3333
for (const key in newObj) {
3434
const val = newObj[key]
35-
if (val && typeof val === 'object') {
35+
if (val !== null && typeof val === 'object') {
3636
deepAssign(obj[key], val)
3737
} else {
3838
obj[key] = val

0 commit comments

Comments
 (0)