Skip to content

Commit

Permalink
fix(SearchTree): 运行时被赋值错误类型处理 #604 (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr-z committed Mar 3, 2022
1 parent 61a9651 commit ed0bdbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG_REPORT.md
Expand Up @@ -50,4 +50,4 @@ labels: bug,question

### 附加上下文

在此处添加有关该问题的任何其他上下文。
在此处添加有关该问题的任何其他上下文。
2 changes: 1 addition & 1 deletion packages/react-search-tree/src/index.tsx
Expand Up @@ -113,7 +113,7 @@ function SearchTree<V extends SearchTagInputOption>(props: SearchTreeProps<V>) {
const [isEmpty, isEmptySet] = useState(emptyOption);

useEffect(() => {
selectedValuesSet(value);
selectedValuesSet(Array.isArray(value) ? value : []);
}, [JSON.stringify(value)]);

const selectedChange = (resultValue: Array<V>, cur: V, isChecked: boolean) => {
Expand Down

0 comments on commit ed0bdbb

Please sign in to comment.