Explorar el Código

fix(sidebar): put tab at the end after drag-and-drop between groups

Jocelyn Boullier hace 4 años
padre
commit
45819dd7ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Sidebar/Components/Bar.purs

+ 1 - 1
src/Sidebar/Components/Bar.purs

@@ -463,7 +463,7 @@ lastWinTabIndexInGroup gid =
   A.mapWithIndex (Tuple)
     >>> A.filter (T.snd >>> T.snd >>> (==) gid)
     >>> map T.fst
-    >>> A.head
+    >>> A.last
 
 findNextGroupId :: S.Set GroupId -> GroupId
 findNextGroupId values =