Skip to content

Commit

Permalink
feat: close #1991
Browse files Browse the repository at this point in the history
  • Loading branch information
Flcwl committed Nov 10, 2021
1 parent 4486807 commit e97088a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default CompatedDropdown

function convertData(data, prefix = '', suffix = '') {
const recur = (data) => {
return data.map((item) => {
return data.map((row) => {
const item = { ...row }

if (item.children) {
item.children = recur(item.children)
}
Expand Down

0 comments on commit e97088a

Please sign in to comment.