Explorar o código

refactor: add default case for moveTabToGroup

It shouldn't need (we're guarding against anyway before calling it), but
it's safer that way.
Jocelyn Boullier %!s(int64=4) %!d(string=hai) anos
pai
achega
6799b5bb70
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Sidebar/Components/Bar.purs

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

@@ -217,6 +217,7 @@ handleAction =
           -> GroupId 
           -> State 
           -> H.HalogenM State Action Slots SidebarEvent m Unit
+        moveTabToGroup _ fromGroup toGroup _ | fromGroup == toGroup = pure unit
         moveTabToGroup tid fromGroup toGroup state = do
           let 
               -- XXX: The goal is to put it at the end, but if you: