Avoid prop reference error in test

This commit is contained in:
Jake McDermott
2020-12-08 11:52:29 -05:00
parent c120b731a4
commit b3266f6c62

View File

@@ -506,7 +506,7 @@ class JobOutput extends Component {
handleResize({ width }) {
if (width !== this._previousWidth) {
this.cache.clearAll();
if (this.listRef) {
if (this.listRef?.recomputeRowHeights) {
this.listRef.recomputeRowHeights();
}
}