AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 783 forks source link

Warning: Failed prop type: Invalid prop `noDataIndication` supplied to `BootstrapTable` #2081

Open contactbalajib opened 5 years ago

contactbalajib commented 5 years ago

Hello,

I am new to react and started using react-bootstrap-table-next module in my app and i am getting below warning message, when i use noDataIndication prop. Please suggest me for solution.

<BootstrapTable keyField='id' data={ tableData } columns={ tableColumnDefs } striped bordered noDataIndication={

'assaas'
} />

Warning:

checkPropTypes.js?a15c:19 Warning: Failed prop type: Invalid prop noDataIndication supplied to BootstrapTable. in BootstrapTable (created by Context.Consumer) in ColumnManagementProvider (created by Context.Consumer) in PaginationDataProvider (created by Context.Consumer) in SortProvider (created by Context.Consumer) in DataProvider (created by BootstrapTableContainer) in BootstrapTableContainer (created by Bootstrap2TableComponent) in div (created by Bootstrap2TableComponent) in Bootstrap2TableComponent (created by LoadableComponent) in LoadableComponent (created by ManageAccess) in div (created by ManageAccess) in ManageAccess (created by Connect(ManageAccess)) in Connect(ManageAccess) (created by withSaga(Connect(ManageAccess))) in withSaga(Connect(ManageAccess)) (created by withReducer(withSaga(Connect(ManageAccess)))) in withReducer(withSaga(Connect(ManageAccess))) (created by LoadableComponent) in LoadableComponent (created by Route) in Route (created by App) in Switch (created by App) in div (created by App) in App (created by Connect(App)) in Connect(App) in Router (created by ConnectedRouter) in ConnectedRouter (created by Connect(ConnectedRouter)) in Connect(ConnectedRouter) in IntlProvider (created by LanguageProvider) in LanguageProvider (created by Connect(LanguageProvider)) in Connect(LanguageProvider) in Provider

Gl0ntz commented 5 years ago

I am having the exact same issue with the component. If there is data to be filled into the table it triggers this warning. Other wise it works fine for an empty table. Any reasons/ work flows to fix the warning/