diff --git a/app/soapbox/components/scrollable_list.tsx b/app/soapbox/components/scrollable_list.tsx index efdfc1043..36d7a8575 100644 --- a/app/soapbox/components/scrollable_list.tsx +++ b/app/soapbox/components/scrollable_list.tsx @@ -111,6 +111,8 @@ const ScrollableList = React.forwardRef(({ const node = document.querySelector(`[data-virtuoso-scroller] [data-item-index="${topIndex.current}"]`); if (node) { topOffset.current = node.getBoundingClientRect().top * -1; + } else { + topOffset.current = 0; } }, 150, { trailing: true }), []);