From fc4ff93dd39b67afee1e0842746fddec48a916cc Mon Sep 17 00:00:00 2001 From: dumibell Date: Fri, 9 Jan 2026 17:28:35 +0900 Subject: [PATCH] Fix:Remove activePage state setting from SpanCard --- .../query-output/spans/span-list/span-card.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/log-interface/query-output/spans/span-list/span-card.tsx b/src/components/log-interface/query-output/spans/span-list/span-card.tsx index 546e154d..c4aa6089 100644 --- a/src/components/log-interface/query-output/spans/span-list/span-card.tsx +++ b/src/components/log-interface/query-output/spans/span-list/span-card.tsx @@ -33,9 +33,7 @@ import { newIndexorExpr } from "@/lib/utils/query-expressions"; import { newStrVal } from "@/lib/utils/value-factories"; import { memo, MouseEvent, useCallback, useEffect } from "react"; -import { usePageStore } from "@/stores/page-store"; import { spanIdToString, traceIdToString } from "@/lib/utils/id-factories"; -import { usePathname } from "next/navigation"; import { useSpanNavigation } from "@/hooks/useSpanNavigation"; interface SpanCardProps { @@ -51,8 +49,6 @@ export const SpanCard = memo(({ index, span }: SpanCardProps) => { const { traceUrl, spanUrl } = useSpanNavigation(traceId, spanId); - const { activePage, setActivePage } = usePageStore(); - const handleCopy = useCallback( (e: MouseEvent, id: string) => { e.preventDefault(); @@ -61,10 +57,6 @@ export const SpanCard = memo(({ index, span }: SpanCardProps) => { [traceId, spanId], ); - useEffect(() => { - setActivePage("traces"); - }, [activePage]); - if (!span) return
; return (