Skip to content

Commit

Permalink
Merge pull request #38 from pat310/stop-collapsing-at-lowest-level
Browse files Browse the repository at this point in the history
fix for #37
  • Loading branch information
pat310 authored Mar 18, 2017
2 parents 1784ab0 + 6c90660 commit 35528f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ build/Release
node_modules

# Ignore built files
lib
lib

# Ignore mac files
.DS_Store
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ export default class Pivot {
collapse(rowNum) {
let returnedData = collapse(rowNum, this.data);

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

0 comments on commit 35528f0

Please sign in to comment.