From 0e7baa56dbb752a611139d0ffeab6eb720b7a214 Mon Sep 17 00:00:00 2001 From: James Clark Date: Mon, 1 Aug 2022 15:26:04 +0100 Subject: [PATCH] Ignore null props when resolving theme --- src/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme.ts b/src/theme.ts index 25a91224..bffbdf63 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -209,7 +209,7 @@ export function resolveTheme(theme: ThemeInterface): ResolvedThemeInterface { }, enumerable: true, }); - } else if (typeof val === 'object') { + } else if (typeof val === 'object' && val !== null) { setProxy(val, currentPath); } });