Skip to content

Commit

Permalink
Merge 6767b73 into 1784ab0
Browse files Browse the repository at this point in the history
  • Loading branch information
turnerniles committed Mar 15, 2017
2 parents 1784ab0 + 6767b73 commit 4a415f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ export default class Pivot {

collapse(rowNum) {
let returnedData = collapse(rowNum, this.data);

this.collapsedRows[this.data.table[rowNum].row] =
returnedData.collapsed;
if (returnedData.collapsed) {
this.collapsedRows[this.data.table[rowNum].row] =
returnedData.collapsed;
}
this.data = returnedData.uncollapsed;
return this;
}
Expand Down

0 comments on commit 4a415f9

Please sign in to comment.