diff --git a/frontend/src/app/AppLayout.jsx b/frontend/src/app/AppLayout.jsx index a17044d..37590c4 100644 --- a/frontend/src/app/AppLayout.jsx +++ b/frontend/src/app/AppLayout.jsx @@ -3859,21 +3859,19 @@ const AppLayout = () => { nextSelectionKeys = filtered; return filtered; } - targetKey = resultKeys[0] || null; - nextSelectionKeys = targetKey ? [targetKey] : []; - return nextSelectionKeys; + targetKey = null; + nextSelectionKeys = []; + return []; }); selectionOrderRef.current = nextSelectionKeys; setSelectionOrder(nextSelectionKeys); - const targetDocId = targetKey ? getRowId(targetKey) : null; - setFocusedDocumentId((previous) => { if (previous && resultKeys.includes(resolveDocumentRowKey(previous))) { return previous; } - return targetDocId; + return null; }); selectionAnchorRef.current = targetKey;