Open patelkardam opened 6 years ago
Uncaught TypeError: Cannot read property 'accountNumber' of undefined
The above error occurred in the
React will try to recreate this component tree from scratch using the error boundary you provided, AppContainer. TypeError: Cannot read property 'accountNumber' of undefined(…) [WDS] App updated. Recompiling... [WDS] App hot update... [HMR] Checking for updates on the server... [HMR] Updated modules:
I have exactly same problem. can someone help, please?
please make the "pageStartIndex: 0" to " pageStartIndex: 1" in Options. It's working for me.
Thanks, I did and it worked.
On Thu, Feb 27, 2020 at 9:10 AM Prakash Rayamajhi notifications@github.com wrote:
please make the "pageStartIndex: 0" to " pageStartIndex: 1" in Options. It's working for me.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AllenFang/react-bootstrap-table/issues/1955?email_source=notifications&email_token=ACBVK4J4B25LEFFYTPTDHJTRE7CWZA5CNFSM4E4POXN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENERACI#issuecomment-591990793, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBVK4KLSLNM4GP34BHBKGDRE7CWZANCNFSM4E4POXNQ .
-- Thanks, Lok
Below is my code snippet:
import React, {Component} from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { Table } from 'reactstrap';
class AccountSearchResultPage extends Component {
onRowClick(row) { console.log('selected row is :' + row.accountNumber); var acctNumber = row.accountNumber; this.props.setSelectedAccount(acctNumber); };
render() {
} }
export default AccountSearchResultPage;
First time when my component is render that time it shows data ({this.props.productList} ) on table. But if i try to refresh this component again then i am getting error