fix: retain scroll view on delete convo

This commit is contained in:
Daniel Avila 2023-03-11 22:59:32 -05:00
parent f1aabfa543
commit 8762765dd0
4 changed files with 18 additions and 13 deletions

View file

@ -32,10 +32,11 @@ export default function Conversations({ conversations, conversationId, showMore
chatGptLabel={convo.chatGptLabel}
promptPrefix={convo.promptPrefix}
bingData={bingData}
retainView={showMore.bind(null, false)}
/>
);
})}
{conversations && conversations.length >= 12 && conversations.length % 12 === 0 && (
{conversations?.length >= 12 && (
<button
onClick={clickHandler}
className="btn btn-dark btn-small m-auto mb-2 flex justify-center gap-2"