Check whether tableContent ref is present.

This commit is contained in:
Filip Barl
2017-10-23 17:09:56 +02:00
parent 4872a85181
commit 1d665a5a23

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,
};
}