Skip to content

Commit

Permalink
fix(AnalyticalTable): Fix column width reduce function (#201)
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
MarcusNotheis authored Oct 22, 2019
1 parent 5b4ea26 commit 68bec1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const VirtualTableBody = (props) => {
}
return item.minWidth ? item.minWidth : defaultColumnWidth;
})
.reduce((el, acc) => el + acc);
.reduce((acc, val) => acc + val, 0);
return tableWidth > aggregatedWidth ? null : aggregatedWidth;
}, [columns, tableWidth, resizedColumns]);

Expand Down

0 comments on commit 68bec1a

Please sign in to comment.