Skip to content

data.filter is not a function #1372

@ansuedev

Description

@ansuedev

Describe the bug
I din't know if this is a bug or not compatibility with the currect react create app but when i try to use the search feature included in the toolkit i always receive this error.

data.filter is not a function

i used a code that i made like 1 year ago and 1 year ago it worked but now te return that error

To Reproduce
Only enable search feature and error will appear

key: 'search',
value: function search(props) {
var data = props.data,
columns = props.columns;

      var searchText = props.searchText.toLowerCase();
      return data.filter(function (row, ridx) {     <--------bug here
        for (var cidx = 0; cidx < columns.length; cidx += 1) {
          var column = columns[cidx];

It is like if the function is fired when page is rendered and of course, or something with the async?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions