From 1dadbdd5bfd628d7b398bdaa4e96d790ded58ee8 Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Tue, 20 Sep 2022 16:19:19 +0800
Subject: [PATCH] chore(rematch-tsx): fix example type error.
---
example/rematch-tsx/package.json | 2 +-
example/rematch-tsx/src/pages/login/index.tsx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/example/rematch-tsx/package.json b/example/rematch-tsx/package.json
index 72174b59..0292b440 100644
--- a/example/rematch-tsx/package.json
+++ b/example/rematch-tsx/package.json
@@ -22,7 +22,7 @@
"react-dynamic-loadable": "~3.0.0",
"react-redux": "~7.2.8",
"react-router-dom": "~6.3.0",
- "uiw": "~4.21.0"
+ "uiw": "^4.21.17"
},
"devDependencies": {
"@kkt/less-modules": "^7.2.0",
diff --git a/example/rematch-tsx/src/pages/login/index.tsx b/example/rematch-tsx/src/pages/login/index.tsx
index a065a09d..e7561cc2 100644
--- a/example/rematch-tsx/src/pages/login/index.tsx
+++ b/example/rematch-tsx/src/pages/login/index.tsx
@@ -85,7 +85,7 @@ export default function Login() {
},
}}
>
- {({ fields, canSubmit }) => {
+ {({ fields = {}, canSubmit }) => {
return (
<>
@@ -102,7 +102,7 @@ export default function Login() {
-