mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 09:08:28 +00:00
Fix: facts page is not opening
This commit is contained in:
parent
cfb0af6d08
commit
9d34e5d926
@ -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 }>();
|
||||
|
||||
|
||||
@ -36,7 +36,6 @@ export function LogTextCollapse({
|
||||
error,
|
||||
id,
|
||||
log,
|
||||
reset,
|
||||
}: LogTextCollapseProps) {
|
||||
const [dialogOpen, setDialogOpen] = useState(false);
|
||||
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -74,7 +72,6 @@ export function VirtualLogsList({
|
||||
hasMore,
|
||||
loadMore,
|
||||
isLoading,
|
||||
reset,
|
||||
}: VirtualLogsListProps) {
|
||||
// Create a CellMeasurerCache instance using useRef to prevent recreation
|
||||
const cacheRef = useRef<CellMeasurerCache | null>(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) => {
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user