Skip to content

Commit 8a0a5f4

Browse files
authored
Merge pull request #680 from akieling/angular-patternfly-667
fix(pfTableView): fix access to invalid array item
2 parents 02054a8 + be09372 commit 8a0a5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/table/tableview/table-view.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ angular.module('patternfly.table').component('pfTableView', {
378378

379379
for (i = 0; i < anNodes.length; ++i) {
380380
rowData = anNodes[i].cells;
381-
if (rowData !== null) {
381+
if (rowData !== null && rowData.length > ctrl.selectionMatchPropColNum) {
382382
visibleRows.push(_.trim(rowData[ctrl.selectionMatchPropColNum].innerText));
383383
}
384384
}

0 commit comments

Comments
 (0)