Selaa lähdekoodia

fix(sidebar/bar): incorrect event sent to child on TabCreated

Jocelyn Boullier 4 vuotta sitten
vanhempi
commit
4ca1c847bf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Sidebar/Components/Bar.purs

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

@@ -151,7 +151,7 @@ component =
        let tabId = view _tabId tab
        s <- H.modify (\s -> s { tabsToGroup = M.insert tabId s.currentGroup  s.tabsToGroup })
        doOnTabGroup tabId \_ -> do
-         void $ tellChild s.currentGroup $ Tabs.TabAttached tab
+         void $ tellChild s.currentGroup $ Tabs.TabCreated tab
        pure (Just a)
 
     Tabs.TabDeleted tid a -> do