diff --git a/routes/_components/virtualList/virtualListStore.js b/routes/_components/virtualList/virtualListStore.js index 8faf5218..c29326e2 100644 --- a/routes/_components/virtualList/virtualListStore.js +++ b/routes/_components/virtualList/virtualListStore.js @@ -26,7 +26,9 @@ virtualListStore.computeForRealm('itemHeights', {}) virtualListStore.compute('rawVisibleItems', ['items', 'scrollTop', 'itemHeights', 'offsetHeight', 'showHeader', 'headerHeight', 'listOffset'], (items, scrollTop, itemHeights, offsetHeight, showHeader, headerHeight, listOffset) => { - window.rawVisibleItemsComputed = (window.rawVisibleItemsComputed || 0) + 1 + if (process.browser && process.env.NODE_ENV !== 'production') { + window.rawVisibleItemsComputed = (window.rawVisibleItemsComputed || 0) + 1 + } mark('compute visibleItems') if (!items) { return null