From 65ac7e22f4b5623fd54f23a8d83508a0c1d7f3af Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 21 Aug 2018 07:06:53 -0700 Subject: [PATCH] fix null error in VirtualListFooter.html (#456) --- routes/_components/virtualList/VirtualListFooter.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/_components/virtualList/VirtualListFooter.html b/routes/_components/virtualList/VirtualListFooter.html index 986730e14..9a9b6839d 100644 --- a/routes/_components/virtualList/VirtualListFooter.html +++ b/routes/_components/virtualList/VirtualListFooter.html @@ -17,8 +17,13 @@ export default { oncreate () { requestAnimationFrame(() => { + let node = this.refs.node + if (!node) { + return + } + mark('VirtualListFooter gBCR') - let rect = this.refs.node.getBoundingClientRect() + let rect = node.getBoundingClientRect() stop('VirtualListFooter gBCR') this.store.setForRealm({footerHeight: rect.height}) })