Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#433 Preventing the empty error displaying on pending init (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Mar 28, 2017
1 parent ac1aabe commit ff4873d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ class Table extends Component {
getIndentData = (selectFirst) => {
const {rowData, tabid, indentSupported} = this.props;

if(!(rowData[1] && Object.keys(rowData[1]).length)){
return;
}

if(indentSupported){
let rowsData = [];

Expand All @@ -109,7 +105,7 @@ class Table extends Component {

this.setState({
rows: rowsData,
pendingInit: !!Object.keys(rowsData)
pendingInit: !rowsData
}, () => {
if(selectFirst){
this.selectOneProduct(this.state.rows[0].id);
Expand All @@ -120,7 +116,7 @@ class Table extends Component {
} else {
this.setState({
rows: rowData[tabid],
pendingInit: !!Object.keys(rowData[tabid])
pendingInit: !rowData[tabid]
});
}
}
Expand Down

0 comments on commit ff4873d

Please sign in to comment.