Merge pull request #2907 from weaveworks/2898-fix-scroll-height-of-null-error

Check whether tableContent ref is present
This commit is contained in:
Filip Barl
2017-10-23 18:40:20 +02:00
committed by GitHub

View File

@@ -173,7 +173,7 @@ class NodeDetailsTable extends React.Component {
this.focusState = {
focusedNode: node,
focusedRowIndex: rowIndex,
tableContentMinHeightConstraint: this.tableContent.scrollHeight,
tableContentMinHeightConstraint: this.tableContent && this.tableContent.scrollHeight,
};
}