Просмотр исходного кода

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 4 лет назад
Родитель
Сommit
6799b5bb70
1 измененных файлов с 1 добавлено и 0 удалено
  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: