From 0a3272252d6cd801b8debc807697fd9969912f46 Mon Sep 17 00:00:00 2001 From: Daniel Gornstein Date: Mon, 14 Nov 2016 16:21:53 -0800 Subject: [PATCH] fix(row-height): protect row undefined Closes #280 --- src/utils/row-height-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/row-height-cache.ts b/src/utils/row-height-cache.ts index 4dc2f9375..b747c6903 100644 --- a/src/utils/row-height-cache.ts +++ b/src/utils/row-height-cache.ts @@ -54,7 +54,7 @@ export class RowHeightCache { // Add the detail row height to the already expanded rows. // This is useful for the table that goes through a filter or sort. - if (rows[i].$$expanded === 1) { + if (rows[i] && rows[i].$$expanded === 1) { currentRowHeight += detailRowHeight; }