Procházet zdrojové kódy

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

Jocelyn Boullier před 4 roky
rodič
revize
4ca1c847bf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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