Skip to content

Commit

Permalink
Merge pull request #114 from langleyfoxall/fix/broken-dependency
Browse files Browse the repository at this point in the history
Fix broken dependency.
  • Loading branch information
lfnicklangley authored Aug 1, 2024
2 parents da30b05 + d2f7f47 commit e8da863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DynamicDataTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import DataRow from './Components/DataRow'
import Pagination from './Components/Pagination'
import PerPage from './Components/PerPage'

import flatten from 'core-js/fn/array/flatten'

class DynamicDataTable extends Component {
constructor (props) {
super(props)
Expand Down Expand Up @@ -190,7 +188,7 @@ class DynamicDataTable extends Component {
orderedFields.push(field)
}

return flatten(orderedFields)
return orderedFields.flat()
}

return fields
Expand Down

0 comments on commit e8da863

Please sign in to comment.