Skip to content

Commit 31f6a06

Browse files
committed
fix: remove unused handleRowClick function
Removed handleRowClick that was no longer used after merge. Click handlers are now inline in the table rows.
1 parent c7d6d92 commit 31f6a06

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

web/app/components/app/log/list.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -958,27 +958,6 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh, s
958958
return queryString ? `${pathname}?${queryString}` : pathname
959959
}, [pathname, searchParams])
960960

961-
const handleRowClick = useCallback((log: ConversationListItem) => {
962-
if (conversationIdInUrl === log.id) {
963-
if (!showDrawer)
964-
setShowDrawer(true)
965-
966-
if (!currentConversation || currentConversation.id !== log.id)
967-
setCurrentConversation(log)
968-
return
969-
}
970-
971-
pendingConversationIdRef.current = log.id
972-
pendingConversationCacheRef.current = log
973-
if (!showDrawer)
974-
setShowDrawer(true)
975-
976-
if (currentConversation?.id !== log.id)
977-
setCurrentConversation(undefined)
978-
979-
router.push(buildUrlWithConversation(log.id), { scroll: false })
980-
}, [buildUrlWithConversation, conversationIdInUrl, currentConversation, router, showDrawer])
981-
982961
const currentConversationId = currentConversation?.id
983962

984963
useEffect(() => {

0 commit comments

Comments
 (0)