Fix: facts page is not opening

This commit is contained in:
Harshith Mullapudi 2025-08-23 00:09:13 +05:30
parent cfb0af6d08
commit 9d34e5d926
4 changed files with 2 additions and 9 deletions

View File

@ -21,10 +21,9 @@ import { redirect, useFetcher } from "@remix-run/react";
interface LogOptionsProps { interface LogOptionsProps {
id: string; id: string;
reset?: () => void;
} }
export const LogOptions = ({ id, reset }: LogOptionsProps) => { export const LogOptions = ({ id }: LogOptionsProps) => {
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false); const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
const deleteFetcher = useFetcher<{ success: boolean }>(); const deleteFetcher = useFetcher<{ success: boolean }>();

View File

@ -36,7 +36,6 @@ export function LogTextCollapse({
error, error,
id, id,
log, log,
reset,
}: LogTextCollapseProps) { }: LogTextCollapseProps) {
const [dialogOpen, setDialogOpen] = useState(false); const [dialogOpen, setDialogOpen] = useState(false);

View File

@ -24,7 +24,6 @@ function LogItemRenderer(
props: ListRowProps, props: ListRowProps,
logs: LogItem[], logs: LogItem[],
cache: CellMeasurerCache, cache: CellMeasurerCache,
reset?: () => void,
) { ) {
const { index, key, style, parent } = props; const { index, key, style, parent } = props;
const log = logs[index]; const log = logs[index];
@ -61,7 +60,6 @@ function LogItemRenderer(
logData={log.data} logData={log.data}
log={log} log={log}
id={log.id} id={log.id}
reset={reset}
/> />
</div> </div>
</div> </div>
@ -74,7 +72,6 @@ export function VirtualLogsList({
hasMore, hasMore,
loadMore, loadMore,
isLoading, isLoading,
reset,
}: VirtualLogsListProps) { }: VirtualLogsListProps) {
// Create a CellMeasurerCache instance using useRef to prevent recreation // Create a CellMeasurerCache instance using useRef to prevent recreation
const cacheRef = useRef<CellMeasurerCache | null>(null); const cacheRef = useRef<CellMeasurerCache | null>(null);
@ -103,7 +100,7 @@ export function VirtualLogsList({
}; };
const rowRenderer = (props: ListRowProps) => { const rowRenderer = (props: ListRowProps) => {
return LogItemRenderer(props, logs, cache, reset); return LogItemRenderer(props, logs, cache);
}; };
const rowHeight = ({ index }: Index) => { const rowHeight = ({ index }: Index) => {

View File

@ -20,7 +20,6 @@ export default function LogsAll() {
availableSources, availableSources,
isLoading, isLoading,
isInitialLoad, isInitialLoad,
reset,
} = useLogs({ } = useLogs({
endpoint: "/api/v1/logs", endpoint: "/api/v1/logs",
source: selectedSource, source: selectedSource,
@ -97,7 +96,6 @@ export default function LogsAll() {
loadMore={loadMore} loadMore={loadMore}
isLoading={isLoading} isLoading={isLoading}
height={600} height={600}
reset={reset}
/> />
)} )}
</div> </div>