Skip to content

Commit

Permalink
Fix LinkOverlay crashing on certain tables with constraind links
Browse files Browse the repository at this point in the history
This is caused by a bug in ampersand-collection, reported in 2015 and still unfixed: AmpersandJS/ampersand-collection#54
  • Loading branch information
hermann-p committed Nov 17, 2017
1 parent 392e823 commit f0b6641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/js/components/table/VirtualTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ export default class VirtualTable extends PureComponent {
// return visibleCells[columnIndex];
};

filterVisibleCells = (cell, columnId) => columnId === 0 || this.props.columns.at(columnId).visible;
filterVisibleCells = (cell, columnIdx) => columnIdx === 0
|| (f.get("visible", this.props.columns.at(columnIdx)) && this.props.columns.at(columnIdx) !== this.props.columns.at(0));

componentWillReceiveProps(next) {
const newPropKeys = f.keys(next);
Expand Down

0 comments on commit f0b6641

Please sign in to comment.