Skip to content

Commit

Permalink
fix(antd/next): fix null in dataSource error in SelectTable (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifblooms authored Mar 17, 2022
1 parent 33a54e7 commit 2d42894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/antd/src/select-table/useFilterOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const useFilterOptions = (

const doFilter = (arr: any[]) => {
const filterArr: any[] = []
arr.forEach((item) => {
arr?.forEach((item) => {
if (item?.children?.length) {
const filterChildren = doFilter(item.children)
if (filterChildren.length) {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/select-table/useFilterOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const useFilterOptions = (

const doFilter = (arr: any[]) => {
const filterArr: any[] = []
arr.forEach((item) => {
arr?.forEach((item) => {
if (item?.children?.length) {
const filterChildren = doFilter(item.children)
if (filterChildren.length) {
Expand Down

0 comments on commit 2d42894

Please sign in to comment.