From 86bc945221627100197fe7436ea9b91434990610 Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Mon, 6 Jan 2025 09:59:12 +0100 Subject: [PATCH] ContentNodeTree: fix showExpand behavior (#9762) --- front/components/ContentNodeTree.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/components/ContentNodeTree.tsx b/front/components/ContentNodeTree.tsx index d82a6ffaec6f..81b05bb24b2f 100644 --- a/front/components/ContentNodeTree.tsx +++ b/front/components/ContentNodeTree.tsx @@ -102,7 +102,7 @@ function ContentNodeTreeChildren({ parentIds, parentIsSelected, }: ContentNodeTreeChildrenProps) { - const { onDocumentViewClick, selectedNodes, setSelectedNodes } = + const { onDocumentViewClick, selectedNodes, setSelectedNodes, showExpand } = useContentNodeTreeContext(); const [search, setSearch] = useState(""); @@ -176,7 +176,9 @@ function ContentNodeTreeChildren({ return (