diff --git a/src/features/project-tree/ProjectView.tsx b/src/features/project-tree/ProjectView.tsx index c9b912cbd..b269e7940 100644 --- a/src/features/project-tree/ProjectView.tsx +++ b/src/features/project-tree/ProjectView.tsx @@ -320,6 +320,7 @@ export function formatFileDetails(entry: Pick | n interface RowProps { node: ProjectNode; + roots: readonly RootFolder[]; label: string; matches: number[] | null; editing: Editing | null; @@ -340,6 +341,7 @@ const holdsOpenFile = (dir: string, files: readonly string[]) => const Row = memo(function Row({ node, + roots, label, matches, editing, @@ -356,7 +358,6 @@ const Row = memo(function Row({ // Memoised: redraw this row itself when the file icon theme changes. useFileIconRevision(); const deco = useFileDecoration(node.path); - const roots = useEffectiveRoots(); const root = useProjectTree((s) => s.root); const detected = useDetectedRoots(); const build = useProjectPresentation(); @@ -1133,6 +1134,7 @@ export function ProjectView() { ) : ( ), [ + roots, fileLabel, editing, cutPaths,