Skip to content

Commit 909059c

Browse files
committed
fix(react): handle null values in properties of the generic component
1 parent 4e7ed03 commit 909059c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-ssr-client/src/components/Base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function jsonToProps(json: Record<string, any> | undefined): Record<string, any>
4343

4444
for (const key in json) {
4545
const value = json[key]
46-
if (typeof value == "object") {
46+
if (typeof value == "object" && value != null) {
4747
if (typeof value.jsCode == "string") {
4848
const code = eval(value.jsCode);
4949
result = {

0 commit comments

Comments
 (0)