Skip to content

Commit

Permalink
doc(SearchTree): fix demo error (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyuefeng committed Mar 2, 2022
1 parent 7b3eaa3 commit 62026a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-search-tree/README.md
Expand Up @@ -150,8 +150,8 @@ const form=useRef()
onSubmit={({initial, current}) => {
console.log('current',current)
const errorObj = {};
if (!current.selectField) {
errorObj.selectField = '默认需要选择内容,选择入内容';
if (!current.searchTree) {
errorObj.searchTree = '默认需要选择内容,选择入内容';
}
if(Object.keys(errorObj).length > 0) {
const err = new Error();
Expand Down

0 comments on commit 62026a7

Please sign in to comment.