Ignore null props when resolving theme

This commit is contained in:
James Clark 2022-08-01 15:26:04 +01:00 committed by GitHub
parent cf4642e303
commit 0e7baa56db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ export function resolveTheme(theme: ThemeInterface): ResolvedThemeInterface {
}, },
enumerable: true, enumerable: true,
}); });
} else if (typeof val === 'object') { } else if (typeof val === 'object' && val !== null) {
setProxy(val, currentPath); setProxy(val, currentPath);
} }
}); });