File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
apps/dashboard/app/(main)/websites/[id]/sessions/_components Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ export function SessionsList({ websiteId }: SessionsListProps) {
108108 const rawSessions = ( data . session_list as unknown [ ] ) || [ ] ;
109109 const transformedSessions = rawSessions . map ( ( session : unknown ) => {
110110 const sessionData = session as Record < string , unknown > ;
111- // Transform ClickHouse tuple events to objects
112111 const events = Array . isArray ( sessionData . events )
113112 ? transformSessionEvents ( sessionData . events )
114113 : [ ] ;
@@ -123,10 +122,8 @@ export function SessionsList({ websiteId }: SessionsListProps) {
123122 } ) ;
124123
125124 if ( page === 1 ) {
126- // First page - replace all sessions
127125 setAllSessions ( transformedSessions ) ;
128126 } else {
129- // Subsequent pages - append new sessions (deduplicate by session_id)
130127 setAllSessions ( ( prev ) => {
131128 const existingIds = new Set (
132129 prev . map ( ( s ) => ( s as Record < string , unknown > ) . session_id )
You can’t perform that action at this time.
0 commit comments