From d5b019609a607a820b8982ff4b82c73cbec6700f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 22 Aug 2022 11:13:42 +0200 Subject: [PATCH] better object chck --- packages/nuxt/src/app/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/config.ts b/packages/nuxt/src/app/config.ts index 086278c80f4..b8d504a0728 100644 --- a/packages/nuxt/src/app/config.ts +++ b/packages/nuxt/src/app/config.ts @@ -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