Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisamir98 committed Dec 18, 2024
1 parent 7272a0a commit 4ae0950
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import React, {
useState,
MutableRefObject,
useCallback,
useRef,
} from 'react';

import {useVirtualizer} from '@tanstack/react-virtual';
Expand Down Expand Up @@ -173,10 +174,8 @@ export const ConversationsList = ({
(isFolderView && currentFolder?.conversations().filter(conversationSearchFilter(conversationsFilter))) || [];
const conversationsToDisplay = filteredConversations.length ? filteredConversations : conversations;

// The scrollable element for your list
const parentRef = React.useRef(null);
const parentRef = useRef(null);

// The virtualizer
const rowVirtualizer = useVirtualizer({
count: conversationsToDisplay.length,
getScrollElement: () => parentRef.current,
Expand Down

0 comments on commit 4ae0950

Please sign in to comment.