From 69138c5abc38e37d8dcedb2c3ec161e8effbc70b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexandre=20Delano=C3=AB?= <devel+git@delanoe.org>
Date: Mon, 6 Jul 2020 12:03:04 +0200
Subject: [PATCH] [FIX] can not move upper node in childre (it breaks the
 tree).

---
 src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs b/src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs
index dc72cd72..19413d64 100644
--- a/src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs
+++ b/src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs
@@ -119,7 +119,8 @@ subTreeTreeViewCpt = R.hooksComponent "G.C.F.T.N.A.U.subTreeTreeViewCpt" cpt
 
         SubTreeParams { valitypes } = subTreeParams
         
-        sortedAry = A.sortWith (\(NTree (LNode {id:id'}) _) -> id') ary
+        sortedAry = A.sortWith (\(NTree (LNode {id:id'}) _) -> id')
+                  $ A.filter (\(NTree (LNode {id:id'}) _) -> id'/= id) ary
 
         children = map (\ctree -> subTreeTreeView (p { tree = ctree })) sortedAry
 
-- 
2.21.0