react-bootstrap-table2
react-bootstrap-table2 copied to clipboard
Select Filter template not working. TypeError: Cannot read property 'value' of undefined
{
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
})
}
];
Not enough information to reproduce it. So close it. Please open another issue and follow the instruction to create an clear issue description. thanks