Skip to content

Commit d95757b

Browse files
t3dotggclaude
andcommitted
fix(web): re-expand Legacy features on repeat search jumps
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 698a55f commit d95757b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/web/src/components/settings/SettingsPanels.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,13 @@ function LegacyFeaturesSection() {
15271527
// the section back up without the still-set target immediately reopening it.
15281528
const lastExpandedTargetRef = useRef<string | null>(null);
15291529
useEffect(() => {
1530-
if (searchTargetId === null || !LEGACY_FEATURE_TARGET_IDS.has(searchTargetId)) return;
1530+
if (searchTargetId === null) {
1531+
// A handled jump clears the target; forgetting it here lets a later
1532+
// jump to the same row expand the section again.
1533+
lastExpandedTargetRef.current = null;
1534+
return;
1535+
}
1536+
if (!LEGACY_FEATURE_TARGET_IDS.has(searchTargetId)) return;
15311537
if (lastExpandedTargetRef.current === searchTargetId) return;
15321538
lastExpandedTargetRef.current = searchTargetId;
15331539
setOpen(true);

0 commit comments

Comments
 (0)