From 9d34e5d926ed56a1fb7110211f3e4fc5ffa6c908 Mon Sep 17 00:00:00 2001 From: Harshith Mullapudi Date: Sat, 23 Aug 2025 00:09:13 +0530 Subject: [PATCH] Fix: facts page is not opening --- apps/webapp/app/components/logs/log-options.tsx | 3 +-- apps/webapp/app/components/logs/log-text-collapse.tsx | 1 - apps/webapp/app/components/logs/virtual-logs-list.tsx | 5 +---- apps/webapp/app/routes/home.logs.tsx | 2 -- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/webapp/app/components/logs/log-options.tsx b/apps/webapp/app/components/logs/log-options.tsx index f31fd5c..47e8135 100644 --- a/apps/webapp/app/components/logs/log-options.tsx +++ b/apps/webapp/app/components/logs/log-options.tsx @@ -21,10 +21,9 @@ import { redirect, useFetcher } from "@remix-run/react"; interface LogOptionsProps { id: string; - reset?: () => void; } -export const LogOptions = ({ id, reset }: LogOptionsProps) => { +export const LogOptions = ({ id }: LogOptionsProps) => { const [deleteDialogOpen, setDeleteDialogOpen] = useState(false); const deleteFetcher = useFetcher<{ success: boolean }>(); diff --git a/apps/webapp/app/components/logs/log-text-collapse.tsx b/apps/webapp/app/components/logs/log-text-collapse.tsx index b1915be..5cefa6a 100644 --- a/apps/webapp/app/components/logs/log-text-collapse.tsx +++ b/apps/webapp/app/components/logs/log-text-collapse.tsx @@ -36,7 +36,6 @@ export function LogTextCollapse({ error, id, log, - reset, }: LogTextCollapseProps) { const [dialogOpen, setDialogOpen] = useState(false); diff --git a/apps/webapp/app/components/logs/virtual-logs-list.tsx b/apps/webapp/app/components/logs/virtual-logs-list.tsx index 4f10878..4fde4eb 100644 --- a/apps/webapp/app/components/logs/virtual-logs-list.tsx +++ b/apps/webapp/app/components/logs/virtual-logs-list.tsx @@ -24,7 +24,6 @@ function LogItemRenderer( props: ListRowProps, logs: LogItem[], cache: CellMeasurerCache, - reset?: () => void, ) { const { index, key, style, parent } = props; const log = logs[index]; @@ -61,7 +60,6 @@ function LogItemRenderer( logData={log.data} log={log} id={log.id} - reset={reset} /> @@ -74,7 +72,6 @@ export function VirtualLogsList({ hasMore, loadMore, isLoading, - reset, }: VirtualLogsListProps) { // Create a CellMeasurerCache instance using useRef to prevent recreation const cacheRef = useRef(null); @@ -103,7 +100,7 @@ export function VirtualLogsList({ }; const rowRenderer = (props: ListRowProps) => { - return LogItemRenderer(props, logs, cache, reset); + return LogItemRenderer(props, logs, cache); }; const rowHeight = ({ index }: Index) => { diff --git a/apps/webapp/app/routes/home.logs.tsx b/apps/webapp/app/routes/home.logs.tsx index cddb496..1c9a3ce 100644 --- a/apps/webapp/app/routes/home.logs.tsx +++ b/apps/webapp/app/routes/home.logs.tsx @@ -20,7 +20,6 @@ export default function LogsAll() { availableSources, isLoading, isInitialLoad, - reset, } = useLogs({ endpoint: "/api/v1/logs", source: selectedSource, @@ -97,7 +96,6 @@ export default function LogsAll() { loadMore={loadMore} isLoading={isLoading} height={600} - reset={reset} /> )}