ScrollableList: delete unused scrollerRef

dnd
Alex Gleason 2022-06-01 18:00:09 -05:00
rodzic e4b95534dc
commit 8052d5040a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -76,7 +76,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
const scrollIndexKey = `soapbox:scrollIndex:${location.pathname}`;
const scrollIndex = Number(sessionStorage.getItem(scrollIndexKey));
const initialIndex = useRef(scrollIndex);
const scroller = useRef<Window | HTMLElement | null>(null);
/** Normalized children */
const elements = Array.from(children || []);
@ -171,7 +170,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
Item,
Footer: loadMore,
}}
scrollerRef={c => scroller.current = c}
/>
);