diff --git a/src/components/FindingCard/FindingCard.tsx b/src/components/FindingCard/FindingCard.tsx index da3dccc..cd572e1 100644 --- a/src/components/FindingCard/FindingCard.tsx +++ b/src/components/FindingCard/FindingCard.tsx @@ -1,4 +1,4 @@ -import { memo, useEffect, useRef } from 'react'; +import { memo } from 'react'; import type { FindingRecord } from '../../domain/finding'; import { normalizeSeverity } from '../../profiles/purple-knight/presentation'; import { toolIdForRecord } from '../../importers/status-normalization'; @@ -27,15 +27,8 @@ function FindingCardComponent({ record, title, bookmarked, selected, toolId, sea const outcomeMark = findingOutcomeMark(record, toolId); const resolvedToolId = toolIdForRecord(record, toolId); const diagnostics = policyDiagnosticBadges(record, resolvedToolId); - const cardRef = useRef(null); - - useEffect(() => { - if (!selected) return; - cardRef.current?.scrollIntoView({ block: 'nearest', inline: 'nearest', behavior: 'smooth' }); - }, [selected]); return (