react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Select Filter template not working. TypeError: Cannot read property 'value' of undefined

Open cssher opened this issue 6 years ago • 1 comments

  {
    value: 0,
    label: "Best Seller"
  },
  {
    value: 1,
    label: "Evergreen"
  },
  {
    value: 2,
    label: "Old Category-No recent demand"
  },
  {
    value: 3,
    label: "New Category"
  }
];


[...,    dataField: "seg",
    text: "Segment",
    sort: true,
    formatter: cell =>
      selectOptionsArr.filter(opt => opt.value === cell)[0].value || "",
    filter: selectFilter({
      options: selectOptionsArr
    })
  }
];

cssher avatar Dec 16 '19 16:12 cssher

Not enough information to reproduce it. So close it. Please open another issue and follow the instruction to create an clear issue description. thanks

AllenFang avatar Feb 23 '20 09:02 AllenFang